Moving Django web app directory Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Setting the Python path for the trunk version of DjangoDjango installed, but can't import django in pythonHow to install Django 1.6?Django and SQLite3 doesn't workError installing DjangoRunning python script from django viewscelery django daemonizationdjango app deployment without subdomainUbuntu 18.04 LTS, Apache2, Django Channels with WebSocket Issue 404How to run Django cron in crontab?
Disable hyphenation for an entire paragraph
Letter Boxed validator
∞ symbol in external pdf disappears when used as figure
What are the pros and cons of Aerospike nosecones?
Stars Make Stars
I am not a queen, who am I?
How to bypass password on Windows XP account?
Why is "Captain Marvel" translated as male in Portugal?
What is the musical term for a note that continously plays through a melody?
How to motivate offshore teams and trust them to deliver?
What is a Meta algorithm?
Is 1 ppb equal to 1 μg/kg?
Are my PIs rude or am I just being too sensitive?
Gastric acid as a weapon
Is it true that "carbohydrates are of no use for the basal metabolic need"?
"Seemed to had" is it correct?
Why one of virtual NICs called bond0?
If Jon Snow became King of the Seven Kingdoms what would his regnal number be?
What is the correct way to use the pinch test for dehydration?
Should gear shift center itself while in neutral?
What are the motives behind Cersei's orders given to Bronn?
3 doors, three guards, one stone
Bonus calculation: Am I making a mountain out of a molehill?
Is it true to say that an hosting provider's DNS server is what links the entire hosting environment to ICANN?
Moving Django web app directory
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Setting the Python path for the trunk version of DjangoDjango installed, but can't import django in pythonHow to install Django 1.6?Django and SQLite3 doesn't workError installing DjangoRunning python script from django viewscelery django daemonizationdjango app deployment without subdomainUbuntu 18.04 LTS, Apache2, Django Channels with WebSocket Issue 404How to run Django cron in crontab?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
So I have a really limited knowledge with Django, but for this years cyber defense comp I have a django application that I need to secure as well as the machine. Through a bit of research I found I need to move it. It is in the root directory, and I found that that is a big nono. So I really want to move it to my admin user's folder. (If you would suggest I would be open to making a user for the sole purpose of nobody logging in, but having it hold the files that would be chill)
Anyways I need to move it out of root. I took a snapshot and gave her the good old college try, but something was wrong so I reverted. It started fine, but for some reason it wouldn't work in firefox. It just didn't connect. I think I need to do something with gunicorn because that is how the systemd service accesses it. Not really sure. In preparation I set up a really crappy django site with one page so my knowledge is limited, sorry.
P.S. Sorry I am really sick rn and I am staying at home fighting it off and I am gonna be all rambly
TL;DR I need to move django web app from root directory to a new one and make it work with systemd and gunicorn with only my monkey brain
server python django
New contributor
add a comment |
So I have a really limited knowledge with Django, but for this years cyber defense comp I have a django application that I need to secure as well as the machine. Through a bit of research I found I need to move it. It is in the root directory, and I found that that is a big nono. So I really want to move it to my admin user's folder. (If you would suggest I would be open to making a user for the sole purpose of nobody logging in, but having it hold the files that would be chill)
Anyways I need to move it out of root. I took a snapshot and gave her the good old college try, but something was wrong so I reverted. It started fine, but for some reason it wouldn't work in firefox. It just didn't connect. I think I need to do something with gunicorn because that is how the systemd service accesses it. Not really sure. In preparation I set up a really crappy django site with one page so my knowledge is limited, sorry.
P.S. Sorry I am really sick rn and I am staying at home fighting it off and I am gonna be all rambly
TL;DR I need to move django web app from root directory to a new one and make it work with systemd and gunicorn with only my monkey brain
server python django
New contributor
add a comment |
So I have a really limited knowledge with Django, but for this years cyber defense comp I have a django application that I need to secure as well as the machine. Through a bit of research I found I need to move it. It is in the root directory, and I found that that is a big nono. So I really want to move it to my admin user's folder. (If you would suggest I would be open to making a user for the sole purpose of nobody logging in, but having it hold the files that would be chill)
Anyways I need to move it out of root. I took a snapshot and gave her the good old college try, but something was wrong so I reverted. It started fine, but for some reason it wouldn't work in firefox. It just didn't connect. I think I need to do something with gunicorn because that is how the systemd service accesses it. Not really sure. In preparation I set up a really crappy django site with one page so my knowledge is limited, sorry.
P.S. Sorry I am really sick rn and I am staying at home fighting it off and I am gonna be all rambly
TL;DR I need to move django web app from root directory to a new one and make it work with systemd and gunicorn with only my monkey brain
server python django
New contributor
So I have a really limited knowledge with Django, but for this years cyber defense comp I have a django application that I need to secure as well as the machine. Through a bit of research I found I need to move it. It is in the root directory, and I found that that is a big nono. So I really want to move it to my admin user's folder. (If you would suggest I would be open to making a user for the sole purpose of nobody logging in, but having it hold the files that would be chill)
Anyways I need to move it out of root. I took a snapshot and gave her the good old college try, but something was wrong so I reverted. It started fine, but for some reason it wouldn't work in firefox. It just didn't connect. I think I need to do something with gunicorn because that is how the systemd service accesses it. Not really sure. In preparation I set up a really crappy django site with one page so my knowledge is limited, sorry.
P.S. Sorry I am really sick rn and I am staying at home fighting it off and I am gonna be all rambly
TL;DR I need to move django web app from root directory to a new one and make it work with systemd and gunicorn with only my monkey brain
server python django
server python django
New contributor
New contributor
New contributor
asked 3 hours ago
HunterHunter
12
12
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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
);
);
Hunter is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1134210%2fmoving-django-web-app-directory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Hunter is a new contributor. Be nice, and check out our Code of Conduct.
Hunter is a new contributor. Be nice, and check out our Code of Conduct.
Hunter is a new contributor. Be nice, and check out our Code of Conduct.
Hunter is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1134210%2fmoving-django-web-app-directory%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