Phrêsh
Something like: If debug: Urlpatterns+=static(….)
Maq
Then check your configuration. You can try separating the static helper function from the urlpatterns
I've checked it dozens of times, and I did separate static from urlpatterns, did not lead to anything (
Carlitos
Tried it, did not help
do you still get 404 after changing the value of both variables?
Phrêsh
yes
Can have I have screenshots of the template you are working with.
Maq
Can have I have screenshots of the template you are working with.
this is a standard template, I did not change any html of this edit page
Phrêsh
Oohkk
Phrêsh
But have you checked the directory containing the files??
Maq
Oohkk
what? did I misunderstood the request?
Maq
But have you checked the directory containing the files??
yes, this was the first thing I checked, and as I wrote earlier, the file is being uploaded and deleted via admin panel(and I can see the file in media/tables dir ), but not downloaded
Anonymous
Request is not passed into templates, check what value you have into the rendered page
i forget set ?name in my login link <a class="navbar_ico_itemLogin" href="{% url 'accounts:user_login' %}?next={{ request.path }}">Login</a> thanks for your help
Д.....
Hey! Do you know any free hosting service, so I can deploy and host my django project using docker ?
Muflone
Hey! Do you know any free hosting service, so I can deploy and host my django project using docker ?
pythonanywhere is free but doesn't use docker also render.com should be free
Manya
Hi family, I have a little problem with my Api project, could you help me please!?
Doragonsureiyā
Hi family, I have a little problem with my Api project, could you help me please!?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Manya
I am in a quiz project and I would like to display all the information concerning my questionnaires as well as the correct answer is the wrong reason, Everything is ok except that I can't display the wrong Responses in the API
Manya
I used the TabularInline class to display the wrong answer class in my quizzes and it doesn't happen in my API
Manya
I just want to know how to show tabularinline in django rest api framework
Ammar
If i want to make an accounting app which have four main operation like saling purching disposing and retiving all of them will have the same fields except saling will have two more fields and each one will have items which have the same fields That make a total of 8 models that make alot of code repeted for serializing and other things Is there is a better way to make it rather than that
John
recommend a library for django rest framework with working aggregation, pagination, filtering, grouping
Yash
Can someone suggest me a library that can help me to do the various string operations on Hindi or any other language text other than English? Which involves some complex addition of two words or substring. Thankyou
Maxim
already included
Dương
Have Anyone used django model generic foreign key?
Dương
What is pro and cons of it? I found less docs and post about it
Muflone
you create a generic relation with it, so the same Model can be related from multiple Models and you can get access back from the shared model to the others models the pro is less code if models are shared the cons is the model can be confusing as it relates to multiple models
Dương
Thanks a lot
Kashif
Can Anyone Tell Me Regarding Jobs or Internships in Django Dev Just Learning Django is enough to get and Internship or Jobs or I need to learn Flask and FastAPI as Well
Doragonsureiyā
Can Anyone Tell Me Regarding Jobs or Internships in Django Dev Just Learning Django is enough to get and Internship or Jobs or I need to learn Flask and FastAPI as Well
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
(₤ام͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـیر͠
Hello friends, I have a question. I have a set of APIs in the backend that I need to send to the frontend developer (who writes code with React). What is the general approach for this task? I have prepared the APIs, but I'm unsure how to grant access to them so that they can be requested.
Kashif
React or Vue which should I learn for Frontend, As I am doing backend in Django I have little knowledge of JS .
Charly
React or Vue which should I learn for Frontend, As I am doing backend in Django I have little knowledge of JS .
Again, this group is only for Django, not other libraries nor fronted development.
Kashif
Again, this group is only for Django, not other libraries nor fronted development.
Yeah Sorry I know but Since Most Of The People Worked here In Django that's why I have asked
Charly
Yeah Sorry I know but Since Most Of The People Worked here In Django that's why I have asked
Yes most people work with Django here not the other things you are asking. And to shave other group to talk about whatever you want.
Shaheen
I wanna sent email from django, I tried send_mail function but I'm getting this error:(socket.gaierror: [Errno 7] No address associated with hostname) Anyone know how to slove this?
ashu
Hey everyone I have normal doubt in my project I have multiple login page like for see every page we have login page and I want to know that how we redirect the user to same page what they want see I have https redirect but I have only used when user come they want see a page but after submit login I'd and password they on same page like I redirect when user login on any page they come home page
ashu
How I solve this problem
Ali
Have we a library for log records?
Carlitos
You have assertion error on the returned status codes, you should have a look to the functions/classes that you're testing and see what's happening
Bilal
yes that clear but i can't detected the error , can you help me
Gulshan
Hello everyone, I wanna make student management system project in django. Please anyone refer me a project from where I can understand the working of project.
Siddharth
Hello everyone, I am in huge problem, I hosted a site and around 200 persons data is stored in that, I took backup of it to test in my modified site, I mean I am developing that site more, But when I loaddata then it gives errors like: django.db.utils.IntegrityError: Problem installing fixture 'C:\Users\siddh\Projects\Django_Projects\XtraROMs\dump.json': Could not load app.UserProfile(pk=1): UNIQUE constraint failed: app_userprofile.user_id I tried many things like deleting the database and migrations and many other things on stackoverflow, github and chatgpt, But It is not loading, even I tried to use same models as my hosted site but it gives errors
Alex
Your problem is much more related to backup or your data dump than code.
Siddharth
Your problem is much more related to backup or your data dump than code.
http://linkode.org/#3kWhicNVqRaCydzGeu2zN5 Models.py of running site from which I took backup.json http://linkode.org/#Mt42bxgi0rN6rNZvtzNql4 Models.py of website in development, in which I want to load data http://linkode.org/#92hREQlG5LlsTATmZKSwj2 This is the error coming I have deleted database and migrations also many time, I used commands like : py manage.py flush py manage.py reset_db
Alex
username is failing, back up your json. dump, search for which two users are sharing similar names, rename one of the usernames, and try to load data.
ABDULLAHI
You need to recreate the database by running python manage.py makegrations and migrate
Anonymous
"I created a custom user using AbstractUser. However, since I created it, when I try to create a new user from admin.py, I am unable to access my page when I enter the login. How can I fix this?"
Anonymous
how to install rabbitmq spacific version with homebrew in macOS
Anonymous
use docker image
I need rabbitmq for this project
Doragonsureiyā
What are you talking about?
Koen de
how to install rabbitmq spacific version with homebrew in macOS
brew install rabbitmq@2.0.0 Source; https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula Search your version; https://www.rabbitmq.com/changelog.html
부산
Hi everyone! What method of a serializer responsible for returning data from a particular serialized model?
शिवांजली
I diployed my app on vercel but it showing server less error and showing wsgi.py file what is the problem..
Gane
Suggest me a best django framework channels
Software
Social login Google facebook and mobile number with OTP Also manual sign up
Koen de
Social login Google facebook and mobile number with OTP Also manual sign up
Manual sign up; create your own signup form. Other options; https://django-allauth.readthedocs.io/en/latest/
Yaroslav
how to install rabbitmq 3.9.12 on mac brew please tell me
Is it ok to install rabbitmq in a Docker container and use it?
Anonymous
Is it ok to install rabbitmq in a Docker container and use it?
Yeah good but on my project i am not using docker
Anonymous
Yaroslav
I am not getting all how to do that
Unfortunately now I can’t tell you how to install it via brew(
Ngdream
how to create video thumbnail in django without ffmepg