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.

learn more…| top users | synonyms|django jobs

0
votes
0answers
7 views

Django foreign keys are not saving properly

I have multiple foreign keys in the same model and for some reason, whenever I hit submit on the form, the last foreign key is overriding the previously entered ones. Can anyone see whats going on? ...
0
votes
1answer
8 views

Django 1.9 No module named 'django.urls'

Trying to install pcapdb on a fresh debian install (requires django==1.9) installed via 'sudo pip3 install django==1.9' Other parts of django can be imported without issue e.g. django.conf, django.db, ...
0
votes
0answers
7 views

Highlighting individual bootstrap column

I'm making a django website, where I have to change the color of text and make a box appear when hovering over their bootstrap column. The problem I'm having is trying to individually refer to the ...
0
votes
0answers
4 views

Bootstrap, nav-stacked not actually stacking list entries

it seems i'm missing something obvious herei expected the HOME BLOG CONTACT entries to be stacked on top of one another at all times.what am i missing?<body class="body" style="background-...
1
vote
0answers
15 views

docker-compose cannot start service: “exec: \”python3\": executable file not found

(I'm not deeply experienced with docker, fwiw)I have a django appication I'm containerizing. Currently when I run docker-compose up the redis service starts up, but apiexits with error: ERROR: for ...
1
vote
0answers
8 views

In Django, how to display a date widget in the HTML form for a model DateField?

I am new to Django and looking to do something simple. I have a date database field and I am trying to get Django to display it as a 'date' widget in the HTML forms.Following is my code:models....
0
votes
0answers
5 views

django-oauth-toolkit 'invalid client' error after deploy on AWS Elasticbeanstalk

I use django-oauth-toolkit with my django/django-rest-framework application. When I request an access token in dev mode on localhost, it works OK:dev@devComp:$ curl -X POST -d "grant_type=password&...
0
votes
1answer
17 views

Weird behavior with external class in django

I've got a weird problem here. It hurts my brain thinking about it.I've got a Django project with multiple apps. Today I added another app.(views.py)from %app_name%.%class_file% import %...
0
votes
1answer
8 views

Django template: 2 for loops with same iterable seems to be interfering with each other

So I have 2 for loops in an HTML template, back to back that are both using the same iterable like so:{% for counter in iSM %}#some code here{% empty %}<p>There's a missing tab here....
0
votes
0answers
4 views

Is there any way to add through to M2M field with keeping the related manager's .add() working?

While Django doesn't completely support adding the through attribute to a M2M field (in order to add some extra fields), it can be migrated. The main issue is, Django will complain when any code tries ...
0
votes
0answers
5 views

Django Widget Tweaks help text as placeholder

Is there any way to render help text as placeholder in Django Widget Tweaks. New to django widget tweaks.
0
votes
0answers
3 views

how to implement django-crispy-forms tags in Jinja2

i recently switched from using django templates to using Jinja2. how can i be able to use the {% crispy %} tags with Jinja2 templates? I am not too proficient with programming in python yet
0
votes
0answers
6 views

Retrieve and update multiple models at once in Django

I'm new to django and im currently using version 1.8 but I have two modelsclass Book(models.Model):title=models.CharField(max_length=100)author=models.CharField(max_length=50)...
0
votes
0answers
7 views

Django pgettext doesn't create context

in my Django (2.0.2) running in Python 3.6.3 I've created some Models as usual. To be able to work with the admin panel in the user's language, I've set the model's and model field's verbose_names to ...
0
votes
1answer
8 views

Where to write AWS signing code

I'm trying to validate my AWS keys for S3 storage for my Django project. So I've found this tutorial from the offical site. It shows various Python code but it doesn't say where to write it? What file ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,