Chaitra Kulkarni
Okay sorry
The Inspired
uh..... advanced would be ceelry I guess? 😅
The Inspired
CELERY damn you autocorrect!
Vivek Yadav
uh..... advanced would be ceelry I guess? 😅
Between can I ask an gernal question ?
Vivek Yadav
uh..... advanced would be ceelry I guess? 😅
You know Kafka ? Or like django channel and celery ? After that I am ready for jobs ?
The Inspired
its not strictly required. but its good to know if you want to have an edge over the others
Abhi
You know Kafka ? Or like django channel and celery ? After that I am ready for jobs ?
Job is different things when you want to learn django just learn some topics Like authentication,orm, database connection, and some mvt use cases
nn
Hi, I'm using Docker for my Django application. docker-compose -f docker-compose.prod.yml up --build -d But I also have a separate front-end with React. In Docker, everything is set up so that the application runs at ip:8000. The static files are not working for some reason. How do I configure Nginx outside of Docker so that everything works, including the static files?
BinuRice
Hi how can I make Django sitemap_index
BinuRice
?
Charly
?
Be more specific, we don't know what are you talking about
BinuRice
I told you
BinuRice
Django sitemap_index not sitemap urls
The Inspired
Hi how can I make Django sitemap_index
https://docs.djangoproject.com/en/5.1/ref/contrib/sitemaps/
BinuRice
Itry but I have error sayin reverse for ‘Django.contrib.sitemaps.views.sitemap’ not found . Is not valid views function or pattern name.
BinuRice
Yes bro
Yahya
Is there any python django hospital management project
Yahya
With rest rramework
Maxim
Abhi
Is there any python django hospital management project
Check GitHub i already saw many projects like this
Weslen
sorry, group wrong
Nima
this is not a project sharing group
Hi, I'm wondering if there is any project sharing group?
HAJI MASTAN
I have deleted all the migrations files and dbsqllite file data also , but when I run makemigrations it shows no changes detected
first delete migration files and then create new app and copy new app migration files and past it in old one and then migrate and then done
George B
Guys I've been struggling to get requirements.txt file installed on a project I'm busy working on. I'm using Vscode , python 3.10 and posgresql installed. After crating and activating virtual environment the next step is to install requirements.txt in the CD directory so it says "Failed building wheel for psycopg2-binary". Also that, "ERROR: Could not build wheels for psycopg2-binary, which is required to install pyproject.toml-based projects". WHAT SHOULD I DO?
Poojitha
can any one help me out for this error: Failed to send email: (535, b'5.7.8 Username and Password not accepted. To generate otp through email.....and I will highly value your help.
Doragonsureiyā
can any one help me out for this error: Failed to send email: (535, b'5.7.8 Username and Password not accepted. To generate otp through email.....and I will highly value your help.
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Poojitha
I'm using views logic to generate otp!!
cj
I'm using views logic to generate otp!!
it doesn't matter, read the error message carefully until you understand it
BinuRice
Django cache ?
Doragonsureiyā
Django cache ?
This is not a search engine. If you use this group like a search engine, unlike a search engine, you will not get any answers. Please take the the time to formulate your request clearly and remember that you're talking to humans.
Maxim
Django cache ?
what Django cache ?
Maxim
Why you controlling me ?
please read that carefully
BinuRice
Habib
Hi there, I have a question If I want to know where the request is coming from how do I know it For example There is a verify view then there is login, and another one How do I know when the request made to use was from login
clouded
Memcahed
You're talking to humans. We are not a search engine.
Habib
Yeah actually here is the situation I have this verify view and I don't want it to be accessed directly I can't put a login_required decorator on it too because I have is_active to false until verified The problem is in the login view I check user email and password and if registered( not active) I redirect him to the verify view with context= email But if he directly accesses it there is no context
Mirco
Habib
I did check it out but
pink
have you read this document ? and what aren't you understand?
Habib
I did check it out it was about middlewares We they are called Writing your own and so on
Habib
But the point I don't understand is what exactly you were referring to should I be writing a custom middlewares or something? Or is there something else
pink
Do you want to handle the redirection yourself when a user has an active email, or would you prefer to use Django's default behavior?
Habib
When user tries logging in and has active email I am redirecting him to "dashboard" using redirect()
pink
`class RedirectCheckMiddleware(MiddlewareMixin): def process_request(self, request): try: if '/media/' in request.get_full_path(): pass elif '/auth/' not in request.get_full_path(): is_admin = request.session['_is_active'] is_access_admin = '/app_name/' in request.get_full_path() admin_url = reverse('app_name.dashboard:index') customer_url = reverse('customer_app:customer_app.something') if is_admin and not is_access_admin: return redirect(admin_url) if not is_admin and is_access_admin: return redirect(customer_url) else: pass except Exception: pass`
Habib
Thanks it gives an idea
pink
but why dont you use an extension ?
pink
I think it will be safer and more secure if you use a reputable extension; it would be better than coding something yourself that has already been carefully researched and developed.
Habib
Any suggestions. Actually I have no idea about it
Habib
So as of now I was more in a get the job done mindset
pink
good luck
Habib
Thanks 👍
George B
Im getting lost here. I just installed the requirements.txt which went well and now I'm running : python manage.py make migrations. Im Getting an error that read as "decouple.UndefinedValueError: SECRET_KEY not found. Declare it as envvar or define a default value.
George B
Thanks
fereshte
Hello, I have a problem with the APIs of my project Who can help me?
Doragonsureiyā
Hello, I have a problem with the APIs of my project Who can help me?
No one can help you until you explain your difficulties.
Doragonsureiyā
Hello, I have a problem with the APIs of my project Who can help me?
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://hastebin.com - https://bin.kv2.dev
fereshte
Hello, I have a problem with the APIs of my project Who can help me?
This is my first training project and I want to design a clothing site, but I have a problem: I have written my project API’s and uploaded some categories, products and files in admin But when I run the project, it doesn't show the products correctly For example, the product I uploaded in the clothing category is shown in the shoes category Also, it does not display all the products related to a category Views: https://hastebin.com/share/afoxaduzid.python Models: https://hastebin.com/share/ocaqequnuz.css Urls: https://hastebin.com/share/ecadudufas.lua Serializers: https://hastebin.com/share/kimuvocajo.kotlin
Simon
i need help from an expirienced person in django