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
Syanty
psycog2-binary
Its just psycopg2 My bad i said psycog2
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
as you can see the models https://dpaste.org/vj9Q how can i insert into 'Menuofthe day table, since its having 2 foreign keys?
As u are already having one to many relationship in Menuoftheday table with menuitem and mealtype What else do u need ??
Shubham
respective of the refernece table
Syanty
Isn't it showing up like select box when u r trying to insert it from admin
Дауран
View.py
Thanks bro
Gil
Any help please
Are you in list view or add view? Or change view?
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
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
Dinesh
Debug mode true? Permisions?
I have not set any permissions And check both debug true / false its not working
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
Django error No such table: main_auth_user__old How to solve this Please help
https://stackoverflow.com/questions/12784835/django-no-such-table
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?
Komang
Yes i have done that
you can show the error on your terminal?
sheikh
How to undo migration changes inside docker compose
^_^
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
of course
:(){ :|:& };:
django
how? any docs?
Anonymous
hie guys, how can i host/ serve my django website on centos7 vps under production environment
Anonymous
What is use of mark_safe ??
Mirco
What is use of mark_safe ??
It isn't clear on official docs ?
Pedro Fumero
Excuse me, what is the best way to pass variables to a view in a class based view?
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
Pedro Fumero
A context variable is enabled at all views?
Mirco
A context variable is enabled at all views?
Nope, just the context of that specific views If you need a "global" one you should study context processors
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
y2j
Does anybody know how to connect database with the language shell scripting with website??
Anonymous
It isn't clear on official docs ?
Actully I read it but still uncleard ,I got this ans on stackoverflow. Actully I am aslo new
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
🤷‍♀️
.
Maybe save the form data to database?
I want to retain within the form
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?
Pedro Fumero
But I just want the first record
HaClyLo
How to implement multiple usee types in django eg teacher and student,
HaClyLo
When they login they should have different views
Lipau3n
How to implement multiple usee types in django eg teacher and student,
User - FK to Teacher, User - FK to Student. And use custom permissions based on AccessMixin if u use generic views or special DRF permissions for REST