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
Yes
Khumoyun
Yes
Yes, I know it but is it possible my point?
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
Harsh
Second way is, take current year and make loop that decrease 1 year and Store in one list and use it
Harsh
Great
Anonymous
How to put user limit when he search on our webite and give him access to search after payment
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
I have website in django which is based on HRMS. I want to implement a service which can can Stop all services on particular time without stop server
I canno't exactly say how to do that, but I can suggest you the direction. Whatever services you want to manage you should wrap them in systemd scripts. So if you launch a django service by gunicorn or uwsgi - deploy them as systemd services. That way you can manage them as systemd units. Then you can use systemd timers to relaunch them after stopping or start with delay.
Tanguy
p'[p
.
good night everybody, i want to learn django but i don't know where to start
Doragonsureiyā
good night everybody, i want to learn django but i don't know where to start
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
.
👍🏿
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 ?
Anonymous
It's not the correct way to create your custom user model
What's the correct way? Are you talking about that abstract user way by extending that?
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.
David E
Hey, guys. I am looking for a senior Django developer.
¿
Hey guys whats the difference between blank and null in models?
Hello world
Hey guys whats the difference between blank and null in models?
blank is use for form validation, null is used related database
¿
blank is use for form validation, null is used related database
If i don't set blank what will happen in form validation?
Dennis
If i don't set blank what will happen in form validation?
Blank will be allowed in input field but if null=true you will get an error when save in the db
Hello world
¿
firstly try it yourself😅 tn ask
😂 ok thank you by the way
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
Alex
Are two save functions are allowed or work in the same model
It's not java :) No, python doesn't have method overloading.
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?
ken
hi. anyone can suggest guides for the best use of django ORM
Alex
hi. anyone can suggest guides for the best use of django ORM
> the best use of django ORM For example you can write data to a database with it. And also read it back!
Alex
got it... I meant best practices
I think you need some SQL tutorial. Other way you would not ask.
mohammad
Hello, does anyone have the login page code in the standard Django?
ken
I think you need some SQL tutorial. Other way you would not ask.
if you don't understand the question, please please feel free to skip. thanks
Alex
hi. anyone can suggest guides for the best use of django ORM
This may help you a bit https://docs.djangoproject.com/en/3.1/topics/db/optimization/
Mirco
if you don't understand the question, please please feel free to skip. thanks
There's no reason to skip it. Alex's suggestion is totally right Then everything u need to know about the orm is inside the official doc
Mirco
Hello, does anyone have the login page code in the standard Django?
Open GitHub, look for django repo and you can see it
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.
noob
Any api for new movie/ series trailer
noob
imdb
Okay
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