Create a Debian package for my Django application
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
add a comment |
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
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 topip 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
add a comment |
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
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
python django package debian
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 topip 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
add a comment |
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 topip 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
add a comment |
1 Answer
1
active
oldest
votes
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)
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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)
add a comment |
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)
add a comment |
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)
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)
edited Nov 23 '18 at 23:48
answered Nov 23 '18 at 23:23
user2567875user2567875
233114
233114
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 topip 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