-
Published Answer
Your alias statements could be wrong in location branches. Point those to full pathes.
location /media {
...
•
By
AlexeiRamone
-
Published Answer
I can see a dashboard here in Brazil so it seems to be fine.
•
By
AlexeiRamone
-
Published Answer
Location still need to return the file itself.
location ~* loader\.js$ {
add_header Cache-Control 'no-store, no-cache, m...
•
By
AlexeiRamone
-
Published Answer
On your nginx configuration try server_name .mysite.com only. Then, open another server block like this
server...
•
By
AlexeiRamone
-
Published Answer
Did you run python manage.py collectstatic in the server? (the only place it’s necessary)?
•
By
AlexeiRamone
-
Published Answer
Try server_name 161.35.74.202 .example.de;
With this dot before example.de it uses *.example.de and example.de
•
By
AlexeiRamone
-
Published Answer
Create a url route to /ads.txt, create a view, make sure your response uses content type text/plain and reply. Sorry, i have this c…
•
By
AlexeiRamone
-
Published Answer
Django doesn’t serve files itself, you have to setup a location block in nginx for that like you did in /static.
location /...
•
By
AlexeiRamone
-
Published Answer
Real issue maybe your sites-enabled not symlinked. Run this on terminal:
`sudo ln -s /etc/nginx/sites-available/*.conf /etc/ngin…
Accepted Answer:
Real issue maybe your sites-enabled not symlinked. Run this on terminal:
`sudo ln -s /etc/nginx/sites-available/*.conf /etc/ngin…
•
By
AlexeiRamone
-
Published Answer
DELETE the + static(settings.STATICURL, documentroot=settings.STATIC_ROOT) thing. Your application is not supposed to serve stati…
•
By
AlexeiRamone
-
Published Answer
You have to setup your nginx to SERVE static files and use the command manage.py collectstatic to copy all your apps’ /static fol…
•
By
AlexeiRamone
-
Published Answer
It’s OK to rename that folder (below manage.py) because Django doesn’t care about it. But keep in mind you’ll need some extra confi…
Accepted Answer:
It’s OK to rename that folder (below manage.py) because Django doesn’t care about it. But keep in mind you’ll need some extra confi…
•
By
AlexeiRamone
-
Published Answer
You’ll have to verify who’s redirecting your domain. Is there any app running there?
If you use python (and requests library) tr…
•
By
AlexeiRamone
-
Published Answer
Because runserver also serves static files at development environment for you. Deployed apps require the webserver to do this…
•
By
AlexeiRamone
-
Published Answer
No. But wagtail is the easiest thing ever to install. Start up a django VM and run pip install wagtail. Please refer to djang…
•
By
AlexeiRamone
-
Published Answer
Delete 1st and 3rd entries and add a CNAME value www to server @ (yes, just @)
•
By
AlexeiRamone
-
Published Answer
Have you tried server_name 127.0.0.1; where 127.0.0.1 works for localhost but you can change it for the real server’s IP?
•
By
AlexeiRamone
-
Published Answer
Put ALLOWED_HOSTS = '*' and then run your command line like python3 manage.py runserver 0.0.0.0:8000 if you’re running …
•
By
AlexeiRamone
-
Published Answer
Did you createsuperuser?
Is the dbuser specified in your settings in /etc/postgresql/9.X/main/pg_hba.conf?
If so and …
•
By
AlexeiRamone
-
Published Answer
Try this:
rename your proxy_pass:
proxy_pass http://django_projectname_server;
and then, BEFORE your server entr…
•
By
AlexeiRamone