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
0
votes
1 answer

Static files are not loading after deployment on digitelocean

I have deploye my django application on digitel ocean by following this blog:alocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04 this is the url as an error i am getting in console for static…
0
votes
1 answer

Django Serve Static Files with out seperate Web server(i.e, without nginx??)

I have a issue with running my django application on the production server, Its working fine when i use nginx webserver to serve the static files. But i have my django application running on one server and my webserver is running on other server.So,…
0
votes
1 answer

No such table on django website deployment on Heroku

I was previously facing issues on deploying my django app on Heroku regarding static directories.But now that I have been able to deploy my website after changing settings.py , there is a error being thrown called 'no such table'.Then I went to…
SAYAN
  • 35
  • 2
  • 12
0
votes
1 answer

How to update package/dependencies on live django website?

I have created a django website which now I am looking to deploy through DigitalOcean, I have not uploaded it yet because I want to get a clear picture before actually starting. My questions are, How to I update the packages required for my website…
0
votes
0 answers

Can't access port 8000 on EC2 instance

I have an EC2 instance which only has private IP (I cant create public as we have restrictions in our org). I have deployed django application on that EC2 instance on port 8000. Can anyone suggest what are the ways I have to access that app? Even…
0
votes
0 answers

collectstatic collecting static files but they're not loading on webpage

I am deploying my Django site on A2 Hosting. I can get the page to display but no static files (images/css) are loading. I have this in my settings.py: STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') ROOT_PATH =…
horse
  • 479
  • 7
  • 25
0
votes
1 answer

Django - relation "app_name_modelname" does not exist

I've deployed my application to DigitalOcean. Everything works fine except this situation. I've added new GeneralComplaintDocument model, made migration locally, pulled from Github last version of project on DigitalOcean's server, deleted all…
0
votes
1 answer

How do I secure a static HTML file in Django? (Make login required before redirecting)

I am using Django Admin interface to allow the admin to upload html files, which will then be stored in 'static/notebooks/file_name'. With the code below I am able to redirect, however how do I make login required and check for user permissions…
0
votes
1 answer

Django is ignoring database connection in settings.py

I'm trying to deploy a django application in a VPS running ubuntu 20.04. I settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { 'read_default_file':'/home/ubuntu/arainc/auth/mysql.cnf' }, } } And…
Lone Rider
  • 97
  • 2
  • 10
0
votes
2 answers

How to deploy Django PostgreSQL database to Google Cloud SQL (App Engine)

This is my first Django deployment, on Google App Engine flexible. After deployment, all static content is rendered correctly, but as soon as the request hits an ORM code, it fails (server error 503). I'm using PostgreSQL and I think I link it…
Zorro
  • 1,085
  • 12
  • 19
0
votes
1 answer

deploying django application to google app engine

I have followed through the steps in google cloud platform guide, but still getting permission error. which says the caller does not have the permission. pls what am I doing wrong. this is the out of command gcloud config list region =…
lvingstone
  • 171
  • 8
0
votes
1 answer

I am getting AttributeError: module 'app' has no attribute 'helpers' when running Djanog runserver on Linux VM

I am getting AttributeError: module "app" has no attributes 'helpers' when I am trying to import as follow in HlperConnector.py: import app.Helpers.SubHelper as shelpr Same setup works perfectly on my VSCode but when deploying on Digital Ocen Linux…
DjangoRulz
  • 85
  • 7
0
votes
0 answers

ModuleNotFoundError: No module named 'django.contrib.admin' in pythonanywhere

hi i know this is repetitive question but i checked everywhere and i checkd my urls and import stuffs but it does not fix i don't know which file path is incorrect i clone my project from github and my project in localhost works all right but in…
0
votes
1 answer

Deploying python web app for wordpress site?

I have created a python web app using the Django framework. I wanted to deploy it online using my domain name. However, I am using the same domain name for my Wordpress site which I have deployed using shared hosting. Is there any way I can deploy…
0
votes
0 answers

Django: How to switch back to local docker development after deployment on heroku

Hi I just finished deploying a project with Django, Docker and Heroku based on the https://djangoforprofessionals.com/ tutorial. However, I don't know how to switch back to local development after having deployed the app. If i go to 127.0.0.1:8000…
Daniel
  • 963
  • 1
  • 12
  • 29