Phrêsh
Something like:
If debug:
Urlpatterns+=static(….)
Phrêsh
Carlitos
Maq
Maq
Phrêsh
yes
Can have I have screenshots of the template you are working with.
Phrêsh
Oohkk
Phrêsh
But have you checked the directory containing the files??
Maq
Oohkk
what? did I misunderstood the request?
Д.....
Hey! Do you know any free hosting service, so I can deploy and host my django project using docker ?
Muflone
Д.....
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
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
Muflone
Ammar
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
Maxim
already included
Maxim
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ā
(₤ام͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـ͠ـیر͠
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
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
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
Siddharth
ABDULLAHI
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
Mohammad Reza
Doragonsureiyā
What are you talking about?
부산
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
Mirco
Software
Social login Google facebook and mobile number with OTP
Also manual sign up
Software
Anonymous
Anonymous
Yaroslav
Anonymous
Anonymous
Yaroslav
Ngdream
how to create video thumbnail in django without ffmepg
Charly