Kai
But this one is throwing error. Can anyone help?
Kai
The included URLconf 'login_logout.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
This is the error I am getting
Kai
from django.urls import include, path
from users.views import RegisterUser, manualLogin, user_login_view, DemoView, user_logout_view
app_name = 'users'
urlpatterns = [
path('login/', user_login_view, name='login'),
path('demo/', DemoView.as_view(), name='demo'),
path('manuallogin/', manualLogin, name='manuallogin'),
path('logout/', user_logout_view, name='logout'),
path('register/', RegisterUser.as_view(), name='register'),
]
This is my urls.py file
Фёдор
How i can merge it in one request?
authors = Follow.objects.filter(user_id__username=request.user)
ids = [i.author_id for i in authors]
post_list = Post.objects.filter(author_id__in=ids).order_by('-pub_date')
T4P4N
T4P4N
T4P4N
Kai
T4P4N
T4P4N
😂😂
or you could just delete the authors model.
Фёдор
Jaydatt
How can i deploy my django project on aws lamda? :) (Serverless architecture)
Python
Hi, I download a django api code from github that has a app wothout urls and view just has a jsonapi part with afew api code, now how can I see the resut of apis ???? Why it has not a view and urls for api
Д
Emn
There are two save buttons inside a form. I want to save a form with validation. And how can i save the second form without verification?
Python
What
There is trade bot api that has a user app and another app for trading but this app's api doesn't have a view for response of api, why?? Just writ as comment it is json api
Д
harsh
Can anyone help me that how we can use dynamic table in django
Д
this TG seriously needs some help with how to set people up to ask questions
Amin
Hello
Do you know a perfect tutorial about telegram bot with python or Django ?
On YouTube etc.
I need a real good tutorial to make a group manager bot
Amin
Anyone help me please 😢
(⌐■-■)
There's a tutorial. But I don't remember
Anil
What is the use of model manager and where it is exactly used ?
Can someone please tell
T4P4N
Anil
Thank you
UP
Can anyone please suggest me best source to learn Django??
Sir
What is the best book to learn Django, or course??
cj
Sir
ꜱᴀᴇᴇᴅ
Hello, is there anyone who can help me write a story model like Instagram or have a code sample?
Абдулазизов
after i hosted my django project and set debug to false my static and media files stopped working what can do to fix it. PLEase HELP !!!
George
George
Following the django deploy guide
Абдулазизов
Абдулазизов
i did it on my own
Абдулазизов
there were no guide
Абдулазизов
can you help me please
Абдулазизов
i hosted to HyperHost
George
yes
https://docs.djangoproject.com/en/4.0/howto/deployment/
Абдулазизов
but there is no guide for hosting to hyperhost
Абдулазизов
i have no experience on hosting project so ...
Абдулазизов
thanks i will read it
G4st0n
To django
Абдулазизов
actually i am not understanding what you are talking about
George
George
Any cdn is valid. Not only Amazon. You don't know even if it's project uses more than static files.
Абдулазизов
George
George
It's just a tool to save data that is not static inside your project. But he thinks that only S3 from Amazon is the only way to store data.
G4st0n
George
That is why people use Matlab instead of python. Because it has great marketing campaigns.
George
G4st0n
G4st0n
Probably u need a procfile like
George
ok you got a point, but first it must fix the deployment of static media
Абдулазизов
Абдулазизов
does all hosting companies use procfile
G4st0n
Абдулазизов
i mean is there possibility that if i will create a procfile but my hosting company does not support that
Абдулазизов
G4st0n
You should read your provider doc
Jaime
Gentlemen, how do I make it so that when a user accesses his account for the first time, he requires a change of password. The second time the password change form no longer appears 🙂🙂🙂🙂🙂🙂🙂🙂
(⌐■-■)
charchit
My django user not deleting, from admin panel it shows user successfully deleted but it still there on database,
Tried this by using command prompt but still getting same issue,
Can anyone help me here??
Sir
How to make a video field?
Sir
I looked doc, but i didn't find it