$ A C H ! N
Create an application that has two apps.
1. User with user and Post model
User : first_name, last_name, email, password, username
Post : user, text, created_at, updated_at
Foreign key relationship exists between User and Post on Model level not on Database level.
2. Products app with Product model.
Product : name, weight, price, created_at, updated_at
Both of the apps should use two different databases.
Create a form that an authenticated user can use to create a post.
Note: Register all models on admin dashboard.
can anyone help me
Tonnie
I have created a django project and when i try to run it i get this error: "ImportError: cannot import name 'FieldDoesNotExist' from django.db.models'"
Any help please
Anonymous
Sibi
Sibi
Can u send pic
Mirco
Doragonsureiyā
Can u send pic
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Saurabh
async_task(path.method_name) not working correctly.
Saurabh
Any help?
Alex
shashikant
While using django channels ,we create an chatroom ,i want to store chat room in model ,so that can show a logined user ,whom they have chat in the past.how can we do this this?
HamidReza Fekri
hey I have two models product and Image beacuse I have many Image for one product I put foreign key from Image to product how to use Images in product template????
Вин Король Саксов
HamidReza Fekri
Вин Король Саксов
HamidReza Fekri
Bwaks
Mo
Hi, does any one know about how Django get mongo objectid ?
googly
use this
Mansi
I have a main project and project table ..so requirement is one major project will many projects and under projects we will have files uploaded from ui..
How we can create this ...??
Real
hello everyone
im using scrapy and django together
well, for writing crawled data to db and using django models we need to use djangoItem extension
i know there are tricky ways instead of djangoItem but i want a solution for djangoitem.
the problem is how can i assign multiple model to djnagoitem
normally we just can assign only a model to each item class at least this all i know at this moment.
i want to write my crawled data in 2 separate table of db.
there is an open issue in djangoitem's repo on github about this topic but no answer since 2016 :))
is anybody here that can help me to handle this problem?
Прекрасное
give advice please, getting ModuleNotFoundError: No module named 'advanced_filters’, how to find ’advanced_filters’? through Ctrl + O there is nowhere, I remember that I wrote it somewhere, but I can't find it, I look in the history of the git, there is nothing there either
Vk
How to work with blockchain.
Mirco
Doragonsureiyā
How to work with blockchain.
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
卐 𐎷𐏃𐎼𐎠𐎴 卐
Hi
I want authenticated with Google account in drf
I use google-auth package
When use proxy in system, this is OK
But without proxy ==> don't work and
Error = could not fetch certificates at https://www.googleapis.com/oauth2/v1/certs
(TransportError)
How can let me fix this problem
(Google has boycotted Iran)
Chikal
bro, if I made a django with 2.2 LTS version, then I want to upgrade with 3.2 version, am I have to re-code the program at the beginning ?
Mirco
Anonymous
Hii
Unique@pp++
Anonymous
Will you pls
Anonymous
Help me
Anonymous
How to make apis
Anonymous
❓
Mirco
Doragonsureiyā
How to make apis
Are you looking for Django REST Framework documentation?
Here you have it: https://www.django-rest-framework.org/
Прекрасное
how to upgrade django-filter ?
Прекрасное
have only
pip install django-filter
but it dont upgrade django-filter
Прекрасное
i have version 2.2.0, want to upgrade before 2.4.0
yusof
Sherry
have anyone used django -editor -js fields
Прекрасное
Прекрасное
pip - this is my separate and long history and problem
yusof
Прекрасное
mac
yusof
mac
pip3 install --upgrade <package name>
yusof
Прекрасное
Successfully uninstalled pip-21.2.3
WARNING: The scripts pip, pip3 and pip3.9 are installed in '/Library/Frameworks/Python.framework/Versions/3.9/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-21.2.3
MacBook-Air-Squidward:api work$ pip --version
bash: pip: command not found
Прекрасное
Прекрасное
thanks
Kamran
Can anyone help me, I have two models one is "doctor" and the other is "patient" doctor have a "time slot details field" as well as "date field" and I need to access the time slot data field whose doctor filled and date can anyone tell me how we can do this
Прекрасное
@Forsythe13
MacBook-Air-Squidward:api work$ pip django --version
bash: pip: command not found
MacBook-Air-Squidward:api work$ pip3 django --version
ERROR: unknown command "django"
MacBook-Air-Squidward:api work$ python3 -m django --version
3.2.5
why such?
cj
cj
ah no wait, wait...
cj
why are you NOT using a virtual environment?
yusof
yusof
Charly
Alex
Прекрасное
yusof
Irrelevant
I want him to check the packages in pycharm setting
Allexiusw
yusof
I using pycharm
You can install your packages from pycharm setting interpreter
Alex
Prashant
Hiii i want to know that when we handover the website to yhe clients how they will manage or maintain the website?
HRITIK
<a class='plus-cart btn' href="{% url 'q_chan' 'minus' {{object.product.id}} %}"><i class='fa fa-plus-square fa-lg'></i></a>
HRITIK
is there any mistaking the code in this way
HRITIK
it is showing the error that
HRITIK
TemplateSyntaxError at /cart/
Could not parse the remainder: '{{object.product.id}}' from '{{object.product.id}}'
Alex
Alex
so just remove those braces
Alex
I don't understand.
Alex
And before you try - don't dm me with a photo of your screen.
Alex
Alex
🤦♂️🤦♂️🤦♂️
Charly