Questions tagged [django-deployment]

django-deployment refers to questions about different ways to deploy Django applications

django-deployment refers to questions about different ways to deploy Django applications.

See documentation.

Also see:

214 questions
23
votes
13 answers

django nginx static files 404

Here are my settings : STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"), ) STATIC_ROOT = '/home/django-projects/tshirtnation/staticfiles' Here's my nginx configuration: server { server_name 77.241.197.95; …
Marijus
  • 4,195
  • 15
  • 52
  • 87
18
votes
3 answers

Deploying django in a production server

First of all please let me be clear that I am a windows user and very new to the web world. For the past months I have been learning both python and django, and it has been a great experience for me. Now I have somehow created a small project that I…
Benjamin Smith Max
  • 2,668
  • 8
  • 33
  • 56
17
votes
2 answers

How do I add authentication and endpoint to Django Celery Flower Monitoring?

I've been using flower locally and it seems easy enough to setup and run, but I can't see how I would set it up in a production environment. In particular, how can I add authentication and how would I define a url to access it?
tzenderman
  • 2,523
  • 3
  • 21
  • 24
16
votes
3 answers

Django Gunicorn not load static files

i'm trying to deploy my django project with gunicorn and nginx, but i need some help. when i code gunicorn myproject.wsgi:application I manage to see my website in the localhost page but without any css. Why gunicorn does not load my css files that…
Anubis4815
  • 269
  • 1
  • 2
  • 10
15
votes
2 answers

Celery worker and beat load in one command

Is there a way to start the celery worker and beat in one command? I would like to add celery to my automated deployment procedure with Fabric. I am currently running: celery -A prj worker -B followed by celery -A prj beat -l info -S…
zubhav
  • 1,519
  • 1
  • 13
  • 19
14
votes
2 answers

Deploying django by python manage.py runserver to production on VPS

I've bought a VPS for my django app. I've never ever before deployed django, or any other application. I've read a few tutorials on how to deploy django using apache and wsgi and some other options gunicorn, ngix. To me it all seems very frustrating…
Marijus
  • 4,195
  • 15
  • 52
  • 87
11
votes
6 answers

Deploying Django: How do you do it?

I have tried following guides like this one but it just didnt work for me. So my question is this: What is a good guide for deploying Django, and how do you deploy your Django. I keep hearing that capastrano is pretty nifty to use, but i have no…
Josh Hunt
  • 14,225
  • 26
  • 79
  • 98
10
votes
4 answers

return database_name == ':memory:' or 'mode=memory' in database_name TypeError: argument of type 'PosixPath' is not iterable

I was making one webapp in django. I try to deployed it on pythonanywhere everything was going fine but in last when i tried to collect static files using python manage.py collectstatic it is giving me this error: return database_name == ':memory:'…
Nitin Saini
  • 507
  • 2
  • 10
  • 26
8
votes
1 answer

Why am I getting "FastCGI process has failed frequently" while deploying a Django application on Windows Server 2012 using IIS

I am trying to deploy Django application on Windows 2012 server using IIS. my web.config file :
Sidhartha
  • 988
  • 4
  • 19
  • 39
8
votes
1 answer

deploy django application with pipenv on apache

I have created a python web application in Django 2.0 using pipenv virtualenv Now, I have to host it on apache server. I have installed libapache2-mod-wsgi-py3 and python-setuptools in the server. The structure of my application is like myapp_dir …
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
7
votes
5 answers

ERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting

I finished my django project.And ı want to deploy my project on aws.I pulled from github my project and then on virtual computer on aws(ubuntu) run pipenv install,I am getting this error every time. ERROR:: --system is intended to be used for…
7
votes
2 answers

Deploying Django Channels: how to keep Daphne running after exiting shell on web server

As practice, I'm trying to deploy Andrew Godwin's multichat example with Django Channels 2.1.1 on DigitalOcean Ubuntu 16.04.4. However, I don't know how to exit the Ubuntu server without Channels' Daphne server stopping. Right now, almost my entire…
nusantara
  • 1,109
  • 1
  • 15
  • 38
7
votes
4 answers

Why app/admin in debug mode false give me Server Error 500

I changed my server settings.py from Debug = True to Debug = False. I can get httpResponses from my other app urls but I can't access the /admin url specifically, I get the Server Error (500) I tried to change the ALLOWED_HOSTS =…
LamaTo
  • 540
  • 1
  • 8
  • 21
6
votes
2 answers

git push Heroku main - error: src refspec main does not match any

I am just trying to follow the step from heroku site. but on my console when i git push to heroku main? that doesn't work. Some error showing. like below. C:\Users\TORU\Desktop\Website Again\Python\django_files\hero\hero_con>git push heroku…
alhasantoru
  • 61
  • 1
  • 2
5
votes
0 answers

Admin template is ignored when deploying

I have a strange situation here using Django 3.2.8: When deploying, only one admin template is being ignored (but not if debug == True): This is my directory after deploying (and before, they are identical): change_form.html is applied correctly,…
1
2 3
14 15