Questions tagged [django]

Django is an open source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Filter by
Sorted by
Tagged with
1 vote
1 answer
461 views

Nginx cors issue when using upstream

I am pretty frustrated with this as I can not seem to figure out why this is happening. I have a Django webapp that was working fine. When I tried changing the worker_connections I started getting ...
nadermx's user avatar
  • 745
1 vote
1 answer
212 views

sudo permission issue LoadModule wsgi_module

I'm trying to run this command on Ubuntu: echo "LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so" > /etc/apache2/mods-available/wsgi.load I get a permission issue, normally this can be ...
user avatar
1 vote
1 answer
304 views

Editing the htmldjango.vim file

I like htmldjango.vim syntax highlighting except for a few things. 1) It highlights all variables (whatever starts with {{ or {% and ends with }} or %}) white and gives it a red font. I want all ...
user216485's user avatar
0 votes
1 answer
534 views

Django, Nginx, CORS issue when server behind upstream but if query server directly responds fine [duplicate]

I currently have the following nginx file server_tokens off; upstream backend { server unix:/home/www/api.to/app.sock weight=1; #server 1.2.3.4 weight=1; #server api3.example.com weight=1; ...
nadermx's user avatar
  • 745
0 votes
1 answer
3k views

quit tmux server and end all running processes

I am running a tmux server configured by tmuxinator. In one pane my django server is running: python manage.py run_gunicorn If i quit tmux by calling the kill-server command, the run_gunicorn ...
Alp's user avatar
  • 173
0 votes
1 answer
1k views

VIM - How to change color of if, else, endif, for and endfor statements

I just Django html so I have the normal html tags as well as the if, else, endif, for and endfor statements. I use a customized version of the colorscheme called slate. There is a line in the ...
user216485's user avatar