pawar
Baku
Syanty
Django Postgressql configuration:
1. Setup postgresql locally
2. Inside ur project install psycopg2
- pip install psycopg2
3. In Setting.py
DATABASES={
'default':{
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME':'DBNAME',
'USER':'username',
'PASSWORD':'password',
'HOST':'localhost',
'PORT':' ',
}
}
4. Just Migrate
Shubham
as you can see the models https://dpaste.org/vj9Q how can i insert into 'Menuofthe day table, since its having 2 foreign keys?
Syanty
Shubham
Shubham
respective of the refernece table
Syanty
Isn't it showing up like select box when u r trying to insert it from admin
Дауран
Dinesh
Dinesh
Gil
Debug mode true?
Permisions?
Dinesh
Made Debug true to get the exact error
Dinesh
I can't able to send the screenshot here in group its restricted, can I send it to your Dm
Kratøs
Kratøs
Like pastebin.com
Dinesh
Thank you
Dinesh
Debug mode true?
Permisions?
Exact error:
Page not found (404)
 
Request Method: POST
Request URL: url/material/subject/add/?....
Raised by: django.contrib.admin.options.add_view
Tush
/
Kip
Where can I learn how to do test cases?
ZK
Why my bash console in pythonanywhere is unable to recognise the new model which I am trying to add. Keeping in mind The website is live.
ZK
python manage.py makemigrations is not detecting it
ɱσσɳ
ZK
Default dbsqlite
ZK
This doesn't happen oftenly but this time I don't know why it's happening
ɱσσɳ
oh okiee no idea about that
ɱσσɳ
ZK
Yes it is always required
Vinayak Kumar
Django error
No such table: main_auth_user__old
How to solve this
Please help
Vinayak Kumar
I have tried stackoverflow redit but unable to solve this issue
Komang
Komang
Please describe your step on making model, maybe you have mistake on steps.
Anonymous
how to add plugin in django tinymce package like pip install tinymce
Vinayak Kumar
#pages_app/models.py
from django.db import models
class Post(models.Model):
name = models.CharFeild(max_length= 15, default = "")
#admin.py
from .models import Post
admin.site.register(Post)
Komang
Are you already to makemigrations and migrate?
Vinayak Kumar
Yes i have done that
Антон
Hi, can someone help me with Babel in django project?
sheikh
How to undo migration changes inside docker compose
Xeyyam
^_^
I’m styling my forms.py and created widgets = { ... } for my fields. Getting an error message for the image field “ImageFieldbobject has no attribute is_hidden”.
Pls how do I solve this and what are the attrs values for ImageField
:(){ :|:& };:
can i hide password hint in crispy forms?
5P34R
I'm planned to build a e-commerce website. Which is better django or any of its derivatives??
Any suggestions please
Shubham
Shubham
of course
:(){ :|:& };:
Anonymous
hie guys, how can i host/ serve my django website on centos7 vps under production environment
Anonymous
What is use of mark_safe ??
Pedro Fumero
Excuse me, what is the best way to pass variables to a view in a class based view?
Bekhruz
AKASH
When i pip install django then django channels not installed shows error twisted and daphne error
AKASH
Anyone please help
AKASH
I have python3.8
5P34R
Pedro Fumero
A context variable is enabled at all views?
Pedro Fumero
Thanks, I'm sorry about if my question are basics, I've start with django two days ago and I really feel lost
Mirco
y2j
Does anybody know how to connect database with the language shell scripting with website??
Ukrainian (Yaros) 🇨🇦
Perhaps this is a stupid question, but how does this list work. What is done in ()?
https://dpaste.org/RHGO
This is full code - django-filter:
https://dpaste.org/2VNm
Can you help me?
Angel
Hello
Angel
I have some issues regarding super user
Angel
I dont get proper design for that... Can anyone help me
.
Can anyone suggest a way to retain form data in django after submitting?
R
R
🤷♀️
.
.
Pedro Fumero
Excuse me if I'm getting [<Order: Fecha: 2020-08-05 - Cliente: Pedro Fumero - Tipo: personal - Monto: 10.0>] how can I get Fecha field? I'm trying with current_orders[0] but it doesn't works what I'm doing wrong?
Sai
Pedro Fumero
But I just want the first record
R
HaClyLo
How to implement multiple usee types in django eg teacher and student,
HaClyLo
When they login they should have different views