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')
Фёдор
? i don't get it, what's wrong with it?
can I get post_list without variable authors?..
T4P4N
can I get post_list without variable authors?..
or try with reverse query on authors model
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
Python
how is this my problem
Don't know, How can I run it without view?
Д
Don't know, How can I run it without view?
friend your communication is so shit that I don't feel like trying to make sense of what you just said
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
Д
Can anyone help me that how we can use dynamic table in django
https://www.pythondiscord.com/pages/guides/pydis-guides/asking-good-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
read the docs
if not getting it then google the terms
Anil
Thank you
UP
Can anyone please suggest me best source to learn Django??
Doragonsureiyā
Can anyone please suggest me best source to learn Django??
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Sir
What is the best book to learn Django, or course??
cj
What is the best book to learn Django, or course??
read the message above yours, literally
ꜱᴀᴇᴇᴅ
Hello, is there anyone who can help me write a story model like Instagram or have a code sample?
Ghorz
What is the best book to learn Django, or course??
The use of the term best is often confused. No such thing as best. Search for a guide, use it if you get stuck, Google is your best friend
Абдулазизов
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
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
Did you actually deploy it correctly?
There is a guide, and you should read it.
George
yes
https://docs.djangoproject.com/en/4.0/howto/deployment/
Абдулазизов
but there is no guide for hosting to hyperhost
George
but there is no guide for hosting to hyperhost
Do you think they are going to make a guide for each and everyone of the servers that exist?
Абдулазизов
i have no experience on hosting project so ...
George
i have no experience on hosting project so ...
Then you should read the guide to deploy django.
Абдулазизов
thanks i will read it
G4st0n
i have no experience on hosting project so ...
Because u need an external object storage like s3 bucket from aws and add dependencies boto3
G4st0n
To django
Абдулазизов
actually i am not understanding what you are talking about
George
Because u need an external object storage like s3 bucket from aws and add dependencies boto3
Well, if you don't know it's project, you shouldn't say that.
George
Any cdn is valid. Not only Amazon. You don't know even if it's project uses more than static files.
Абдулазизов
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
Any cdn is valid. Not only Amazon. You don't know even if it's project uses more than static files.
It's a recomendation not a mandatory thing and also a very common scene
George
That is why people use Matlab instead of python. Because it has great marketing campaigns.
G4st0n
yes, but it was not the question asked
I been done myself sending static and public folder of a project to an external storage so i considerate a valid answer
G4st0n
theese are tools to help deployment process ?
Deployment process is more devops stuff
G4st0n
Probably u need a procfile like
Абдулазизов
Probably u need a procfile like
seems interesting but actually i could not understand what you were trying to understand SORRY !
George
ok you got a point, but first it must fix the deployment of static media
G4st0n
seems interesting but actually i could not understand what you were trying to understand SORRY !
Ok a procfile is a file added to your project that set instructions to Hosting platform how should be execute django
Абдулазизов
does all hosting companies use procfile
G4st0n
does all hosting companies use procfile
This is not related to this channel
Абдулазизов
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