Create a Debian package for my Django application












0















I have a python Django project that runs on my local by running manage.py. It also runs fine on a debian machine when I do a scp of my project from my local to the server . After installing the requirement.txt , works as expected. But, I wanted to know if there is a way I can package my Django that can be easy installed on a debian machine .



Thanks,
Archana










share|improve this question

























  • I think you'd want to check out github.com/pydanny/cookiecutter-django

    – Alex
    Nov 22 '18 at 11:58











  • So does this work on debian machines as well.

    – Archie
    Nov 23 '18 at 8:13











  • I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

    – Alex
    Nov 23 '18 at 9:34











  • @Alex Ok will try that . :) Thanks!

    – Archie
    Nov 23 '18 at 15:30
















0















I have a python Django project that runs on my local by running manage.py. It also runs fine on a debian machine when I do a scp of my project from my local to the server . After installing the requirement.txt , works as expected. But, I wanted to know if there is a way I can package my Django that can be easy installed on a debian machine .



Thanks,
Archana










share|improve this question

























  • I think you'd want to check out github.com/pydanny/cookiecutter-django

    – Alex
    Nov 22 '18 at 11:58











  • So does this work on debian machines as well.

    – Archie
    Nov 23 '18 at 8:13











  • I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

    – Alex
    Nov 23 '18 at 9:34











  • @Alex Ok will try that . :) Thanks!

    – Archie
    Nov 23 '18 at 15:30














0












0








0


1






I have a python Django project that runs on my local by running manage.py. It also runs fine on a debian machine when I do a scp of my project from my local to the server . After installing the requirement.txt , works as expected. But, I wanted to know if there is a way I can package my Django that can be easy installed on a debian machine .



Thanks,
Archana










share|improve this question
















I have a python Django project that runs on my local by running manage.py. It also runs fine on a debian machine when I do a scp of my project from my local to the server . After installing the requirement.txt , works as expected. But, I wanted to know if there is a way I can package my Django that can be easy installed on a debian machine .



Thanks,
Archana







python django package debian






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 9:01







Archie

















asked Nov 22 '18 at 11:23









ArchieArchie

244




244













  • I think you'd want to check out github.com/pydanny/cookiecutter-django

    – Alex
    Nov 22 '18 at 11:58











  • So does this work on debian machines as well.

    – Archie
    Nov 23 '18 at 8:13











  • I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

    – Alex
    Nov 23 '18 at 9:34











  • @Alex Ok will try that . :) Thanks!

    – Archie
    Nov 23 '18 at 15:30



















  • I think you'd want to check out github.com/pydanny/cookiecutter-django

    – Alex
    Nov 22 '18 at 11:58











  • So does this work on debian machines as well.

    – Archie
    Nov 23 '18 at 8:13











  • I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

    – Alex
    Nov 23 '18 at 9:34











  • @Alex Ok will try that . :) Thanks!

    – Archie
    Nov 23 '18 at 15:30

















I think you'd want to check out github.com/pydanny/cookiecutter-django

– Alex
Nov 22 '18 at 11:58





I think you'd want to check out github.com/pydanny/cookiecutter-django

– Alex
Nov 22 '18 at 11:58













So does this work on debian machines as well.

– Archie
Nov 23 '18 at 8:13





So does this work on debian machines as well.

– Archie
Nov 23 '18 at 8:13













I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

– Alex
Nov 23 '18 at 9:34





I don't really understand why would you want to package a Django project as a .deb, seems like a bad idea. I'd advise you to look more into cookiecutter because I think that would provide a solution for what you want to accomplish. You'll be able to pip install your project on any machine afterwards.

– Alex
Nov 23 '18 at 9:34













@Alex Ok will try that . :) Thanks!

– Archie
Nov 23 '18 at 15:30





@Alex Ok will try that . :) Thanks!

– Archie
Nov 23 '18 at 15:30












1 Answer
1






active

oldest

votes


















0














First there are some packaging guidelines. It may like a lot of work at first glance to you, but it's worth to read at least the maintainer guide, to get an overview. The packaging tutorial covers a lot of questions you may have. The Debian Python team as put together some pages, that also should deliver answers to most of your questions, there is also some python related Packaging guidelines, that may come handy later.



https://www.debian.org/doc/manuals/maint-guide/



https://www.debian.org/doc/manuals/developers-reference/



https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf



https://wiki.debian.org/Python



Second there is the debian-mentors irc channel where you can ask questions its #debian-mentors on oftc network (you can use it via https://webchat.oftc.net/ ), keep in mind that it can take a while until people answer in irc, just say hello, ask your question and wait. Same goes for the #debian-python where its likely to find a dev who has packaged a django app before



Third take any package that has the same approach as the things you want to make and unpack including the devscripts:



 mkdir /tmp/mydeb && cd /tmp/mydeb && apt-get source hello


replace "hello" with the name of any already nicely packaged django app, in /tmp/mydeb/hello-xyz/debian/ (where xzy is the current version of the software) you'll find the files needed for packing that can be used as inspiration.



Also the internet says: https://www.laurentluce.com/posts/hello-world/ (haven't tried it, but on first glance it looks like it may work)






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53429887%2fcreate-a-debian-package-for-my-django-application%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    First there are some packaging guidelines. It may like a lot of work at first glance to you, but it's worth to read at least the maintainer guide, to get an overview. The packaging tutorial covers a lot of questions you may have. The Debian Python team as put together some pages, that also should deliver answers to most of your questions, there is also some python related Packaging guidelines, that may come handy later.



    https://www.debian.org/doc/manuals/maint-guide/



    https://www.debian.org/doc/manuals/developers-reference/



    https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf



    https://wiki.debian.org/Python



    Second there is the debian-mentors irc channel where you can ask questions its #debian-mentors on oftc network (you can use it via https://webchat.oftc.net/ ), keep in mind that it can take a while until people answer in irc, just say hello, ask your question and wait. Same goes for the #debian-python where its likely to find a dev who has packaged a django app before



    Third take any package that has the same approach as the things you want to make and unpack including the devscripts:



     mkdir /tmp/mydeb && cd /tmp/mydeb && apt-get source hello


    replace "hello" with the name of any already nicely packaged django app, in /tmp/mydeb/hello-xyz/debian/ (where xzy is the current version of the software) you'll find the files needed for packing that can be used as inspiration.



    Also the internet says: https://www.laurentluce.com/posts/hello-world/ (haven't tried it, but on first glance it looks like it may work)






    share|improve this answer






























      0














      First there are some packaging guidelines. It may like a lot of work at first glance to you, but it's worth to read at least the maintainer guide, to get an overview. The packaging tutorial covers a lot of questions you may have. The Debian Python team as put together some pages, that also should deliver answers to most of your questions, there is also some python related Packaging guidelines, that may come handy later.



      https://www.debian.org/doc/manuals/maint-guide/



      https://www.debian.org/doc/manuals/developers-reference/



      https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf



      https://wiki.debian.org/Python



      Second there is the debian-mentors irc channel where you can ask questions its #debian-mentors on oftc network (you can use it via https://webchat.oftc.net/ ), keep in mind that it can take a while until people answer in irc, just say hello, ask your question and wait. Same goes for the #debian-python where its likely to find a dev who has packaged a django app before



      Third take any package that has the same approach as the things you want to make and unpack including the devscripts:



       mkdir /tmp/mydeb && cd /tmp/mydeb && apt-get source hello


      replace "hello" with the name of any already nicely packaged django app, in /tmp/mydeb/hello-xyz/debian/ (where xzy is the current version of the software) you'll find the files needed for packing that can be used as inspiration.



      Also the internet says: https://www.laurentluce.com/posts/hello-world/ (haven't tried it, but on first glance it looks like it may work)






      share|improve this answer




























        0












        0








        0







        First there are some packaging guidelines. It may like a lot of work at first glance to you, but it's worth to read at least the maintainer guide, to get an overview. The packaging tutorial covers a lot of questions you may have. The Debian Python team as put together some pages, that also should deliver answers to most of your questions, there is also some python related Packaging guidelines, that may come handy later.



        https://www.debian.org/doc/manuals/maint-guide/



        https://www.debian.org/doc/manuals/developers-reference/



        https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf



        https://wiki.debian.org/Python



        Second there is the debian-mentors irc channel where you can ask questions its #debian-mentors on oftc network (you can use it via https://webchat.oftc.net/ ), keep in mind that it can take a while until people answer in irc, just say hello, ask your question and wait. Same goes for the #debian-python where its likely to find a dev who has packaged a django app before



        Third take any package that has the same approach as the things you want to make and unpack including the devscripts:



         mkdir /tmp/mydeb && cd /tmp/mydeb && apt-get source hello


        replace "hello" with the name of any already nicely packaged django app, in /tmp/mydeb/hello-xyz/debian/ (where xzy is the current version of the software) you'll find the files needed for packing that can be used as inspiration.



        Also the internet says: https://www.laurentluce.com/posts/hello-world/ (haven't tried it, but on first glance it looks like it may work)






        share|improve this answer















        First there are some packaging guidelines. It may like a lot of work at first glance to you, but it's worth to read at least the maintainer guide, to get an overview. The packaging tutorial covers a lot of questions you may have. The Debian Python team as put together some pages, that also should deliver answers to most of your questions, there is also some python related Packaging guidelines, that may come handy later.



        https://www.debian.org/doc/manuals/maint-guide/



        https://www.debian.org/doc/manuals/developers-reference/



        https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf



        https://wiki.debian.org/Python



        Second there is the debian-mentors irc channel where you can ask questions its #debian-mentors on oftc network (you can use it via https://webchat.oftc.net/ ), keep in mind that it can take a while until people answer in irc, just say hello, ask your question and wait. Same goes for the #debian-python where its likely to find a dev who has packaged a django app before



        Third take any package that has the same approach as the things you want to make and unpack including the devscripts:



         mkdir /tmp/mydeb && cd /tmp/mydeb && apt-get source hello


        replace "hello" with the name of any already nicely packaged django app, in /tmp/mydeb/hello-xyz/debian/ (where xzy is the current version of the software) you'll find the files needed for packing that can be used as inspiration.



        Also the internet says: https://www.laurentluce.com/posts/hello-world/ (haven't tried it, but on first glance it looks like it may work)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 23 '18 at 23:48

























        answered Nov 23 '18 at 23:23









        user2567875user2567875

        233114




        233114
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53429887%2fcreate-a-debian-package-for-my-django-application%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            Npm cannot find a required file even through it is in the searched directory