Alex
Alex
Khumoyun
Hello,
Can i display range of time in my model choices?
for example:
choices:
2021
2020
2019
2018
every year it should get last five year
Harsh
Harsh
Khumoyun
Harsh
Yes
Khumoyun
Yes
Yes, I know it but is it possible my point?
Harsh
Khumoyun
What to use?
I am using choices in CharField, choices should display last 5 years . Reason is I don't want create tuple and change it every year
Harsh
I don't think so it's possible. Because choices are static we can't make it dynamic
Khumoyun
Harsh
Second way is, take current year and make loop that decrease 1 year and Store in one list and use it
Khumoyun
Harsh
Great
Anonymous
How to put user limit when he search on our webite and give him access to search after payment
Alex
Ayushhhhhhh
How can I implement edit profile without using djnago forms?
Ayushhhhhhh
I have not used Django forms to make signup and login
Alex
Alex
Forms are for convenience. Otherwise you can do everything by your hand and write proper html code.
https://docs.djangoproject.com/en/3.1/topics/forms/#html-forms
Алексей
hello, plz help me, i can't start server. I have a error File "/usr/local/lib/python3.7/site-packages/django/core/serializers/python.py", line 146, in _get_model
Алексей
my python version 3.8
Alex
Tanguy
p'[p
.
good night everybody, i want to learn django but i don't know where to start
Mirco
.
👍🏿
Harsh
Hello world
Every time client calls our authentication API, we want to notify our team with user’s IP by sending a webhook to the following URL:
URL: https://encrusxqoan0b.x.pipedream.net/
Method: POST
Content-Type: application/json
Body: {“user”: user_id, “ip”: ip_address} task . how should i proceed for this task.
👻
Hey folks! Would you guys suggest me to learn django after learning Flask or the other way? Please suggest me a few sources for learning django. Thanks in advance!😊
M
What is sync to async is it like refreshing the pages or div without reload ?
Alex
Unrelatad to django. Go @python
Alex
I'm telling you - learn the language before its framework
Deepanshu
Hello Dear Coders,
I have a Question Related to Simple-JWT, kindly have a look:
https://stackoverflow.com/questions/65863778/how-can-i-use-simple-jwt-for-custom-user-model
Artem
Has somebody license to webstorm? If yes write please me to private messges.
Deepanshu
David E
Hey, guys. I am looking for a senior Django developer.
¿
Hey guys whats the difference between blank and null in models?
Dennis
¿
Hello world
¿
¿
Hello world
😂 welcome
Lucid
Are two save functions are allowed or work in the same model
Lucid
https://del.dog/taylasymag.txt
Lucid
What's wrong with the attribute grade its just setting 0 in the whole column of database
Lucid
Adam
hi everyone, i am working on a data visualization project with django. the problem is that I can't get the path to my last file to save to the database. can someone help me?
Mirco
ken
hi. anyone can suggest guides for the best use of django ORM
ken
mohammad
Hello, does anyone have the login page code in the standard Django?
Alex
Mirco
mohammad
Caesar
# Pull base image
FROM python:3.8
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /code
# Install dependencies
COPY Pipfile Pipfile.lock /code/
RUN pip install pipenv && pipenv install --system
# Copy project
COPY . /code/
I get this error
COPY failed: stat /var/lib/docker/tmp/docker-builder847606000/Pipfile: no such file or directory
How can i solve it?
Anshul
I wanted to learn django and I know basic python ...can anyone suggest me best way to learn django or thinks I should know before starting django
mohammad
Friends is this standard code?
mohammad
؟
Doragonsureiyā
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you post a wall of text message (many lines), delete it quick or you may get a warn strike.
Mirco
noob
Any api for new movie/ series trailer
mohammad
noob
es.py
Rahimi | رحیمی
Hey There. Im Writing Api For A Spa With Rest_framework.
In This App I Have 4 type Of Users With Different Permissions And Views.
I Made a "Simple User Model" ,and a "profile Model" For Each Type Of My Users .
I Have a "user" In Each Of My Profile Models, As A Foreignkey Field.
Now I Know I Have To Create A Group For Each User Type .
But I Dont Know How I Should Make Groups. And How To Make Profiles Connected With Users.
Rahimi | رحیمی
I'll Appreciate Any Help