Re: runserver not working

2022-03-22 Thread Sebastian Jung
Hey, I think yoz don't have installed django package. Please install it over pip install django Regards 'Delvin Alexander' via Django users schrieb am Di., 22. März 2022, 06:07: > would anyone know why my "manage.py runserver" is not working? > > Every time i try running it on the command prom

Recreation of foreign key constraints when changing type of referenced primary key

2022-03-22 Thread Gregor Jerše
Hi, I have a question regarding Django version 3.2.12. When I change the DEFAULT_AUTO_FIELD to BigAutoField and create&apply migrations, the foreign keys of auto-generated through tables are dropped. This can be observed by running sqlmigrate which drops foreign key relations but never recreat

Re: Recreation of foreign key constraints when changing type of referenced primary key

2022-03-22 Thread Jason
You might want to ask this at https://groups.google.com/g/django-developers, as that is where the framework devs have their discussions. This is more of a users group, and I think you'll get a faster answer by posting there. On Tuesday, March 22, 2022 at 6:20:41 AM UTC-4 Gregor Jerše wrote: >

tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-22 Thread Paul Kagan
root@videotron:~ # django-admin startproject mysite root@videotron:~ # python manage.py runserver python: can't open file 'manage.py': [Errno 2] No such file or directory root@videotron:~ # ls .Xauthority .elinks .nn .viminfogit .cache .emacs.d.npm

django.db.utils.InterfaceError: connection already closed

2022-03-22 Thread Michele Matera
Hello! Stack: - Ubuntu (20.04 LTS) - Nginx - Postgresql (v13.3) An AWS load balancer sends traffic to the Ubuntu instance(k8s cluster), which is handled by Nginx, which forwards on to Django (4.0.3) running in gunicorn (19.9.0). Django connects to the database using psycopg2 (2.8.6).

Supertypes, subtypes and authentication

2022-03-22 Thread 'AnneVerm' via Django users
I'm working on a web aplication in which I have a supertype node which is subtyped by organization, person and thing. Nodes can have permission to create/update/delete addresses, events, articles, pages etc. which all have a foreignkey referencing node. I'm struggling with the authentication an

Re: Supertypes, subtypes and authentication

2022-03-22 Thread Antonis Christofides
Hello, Could you explain a few things? A node is the superclass of organization, person and thing? Could you give an example of an organization and of a thing that can or create an article? What would be a better name for test_func? Could it be named is_authorized for example? What does get_ob

jinja

2022-03-22 Thread vasek Kruglov
rfr -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.co

Jinja

2022-03-22 Thread vasek Kruglov
Как убедиться что Jinja закачана и активирована правильно в PycharmProject? Коды на Djangо 4.0.3 работают. При добавлении строки {% extends 'main.layout.html' %} код делает ошибку. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

How to turn off SMTP login during forgot password in django-auth module

2022-03-22 Thread Sujit Pal
I implemented registration / login / forgot password functionality in my application following the steps described here -https://simpleisbetterthancomplex.com/tutorial/2016/09/19/how-to-create-password-reset-view.html I have it working with a google email and password sending on smtp.gmail.com.

Re: runserver not working

2022-03-22 Thread 'Delvin Alexander' via Django users
i did that but the problem still remains :( On Tuesday, March 22, 2022 at 2:09:33 AM UTC-7 sebasti...@gmail.com wrote: > Hey, > > I think yoz don't have installed django package. Please install it over > pip install django > > Regards > > 'Delvin Alexander' via Django users schrieb > am Di., 2

Re: runserver not working

2022-03-22 Thread lalit suthar
haha indeed On Wednesday, 23 March 2022 at 09:08:54 UTC+5:30 Delvin Alexander wrote: > it was python manage.py runserver. it was an easy fix that i wish i found. > hahah > > On Tuesday, March 22, 2022 at 8:32:46 PM UTC-7 Delvin Alexander wrote: > >> i did that but the problem still remains :(