Gustavo
Then it will be read from the disk once.
virtualenv
hi. based on the Doc, I set cache setting for pymemcahe. then I wanna use cachetable too. 1- can I use cache table in postgres? 2- how can i use two cache config in settings.py?
Gustavo
@Ghorz, I was talking with the Django experts, like you, they also suggested me to save databases and render from a model on a page. I will do it.
Anonymous
Guys I deployed django project in heroku but the uploaded file is removed after a day what shall I do my database is postgress?
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
When I am installing django in pycharm
cr
⚡️⚡️⚡️any idea how to add inline model between the parent model (for django admin) I searched google but didn't find satisfactory answers
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
In first step it is correct Then it is showing This site can't be reach
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Why
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
On Google
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Please tell
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
I am trying one week
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
To run the django from pycharm
William
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Yes
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Is django is paid
Hossein
Yes
Python manage.py runservere
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Python manage.py runservere
This is also showing This side can't be reach
Hossein
This is also showing This side can't be reach
Maybe your address is wrong Click on address that pycharm is showing to you
Li
This is also showing This side can't be reach
default url of manage.py runserver is localhost:8000
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Then also it is showing that only
Hossein
Then also it is showing that only
Can you create super user? Test it Maybe you have problem with django 🤷‍♂️
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Hossein
Can I message personal
There is no problem
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Ok
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Anyone can tell me the step to install django in pycharm
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Please 🙏🙏🙏🙏🙏
Anonymous
/
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Brothers
〲☞ 🅓🅔℣ᴵᴸ🅢 -;-༒•♛
Next step
Anonymous
Dajango_admin --version
Tanu
pip install django
Pip install django Python - m pip install django Python - m django - -version django - admin - - version django - admin startproject projectname
Bwaks
Show me views
def event_detail(request,id): event_details = get_object_or_404(event,pk=id) data = { event_details:'event_details', } return render(request,'events/event_detail.html',data)
John
Hi someone to help me in this problem my db.sqlite3 has crash. Any idea to delete all cache
Dev
migrations clear
Dev
and migrate and makemigration
Shivam
Change password in auth user in front end from database
cr
💥💥💥💥💥💥💥any idea how to add inline model between the parent model (for django admin) I searched google but didn't find satisfactory answers
Vishal
How to get into a file from a file like
Vishal
I wanna go a file name textutils into textutils
Vishal
How to get there
Mr Intruder
This site can’t be reachedCheck if there is a typo in array. DNS_PROBE_FINISHED_NXDOMAIN Guys i am facing this problem. Can anyone tell me what i can do??
Devesh
I am working on project online examination system. I am using react as front end and django as backend . Before exam starts I want do user verification task. So that I want to store photo clicked by user in some temporary file till user gets verify. After verification I want to delee that file
Devesh
Please help me here how can I s Do this
Devesh
Any django expert here ?
Devesh
No
Can you please help in that
Mr.TD
I TRIED TO MAKE A USER REGISTRATION PAGE BUT THE DATA IS NOT STORING IN THE POSTGRESQL
Mr.TD
from django.shortcuts import render from django.contrib.auth.models import User, auth from django.http import HttpResponse # Create your views here. def register(request): if request.method == 'POST': username = register.POST['username'] password = register.POST['password'] user = User.objects.create_user(username=username, password=password) user.save(); return HttpResponse('user created') return render(request, 'register.html')
.
how i learned a simple python gui?
Li
from django.shortcuts import render from django.contrib.auth.models import User, auth from django.http import HttpResponse # Create your views here. def register(request): if request.method == 'POST': username = register.POST['username'] password = register.POST['password'] user = User.objects.create_user(username=username, password=password) user.save(); return HttpResponse('user created') return render(request, 'register.html')
1) have done the tutorial? If not finish it first. https://docs.djangoproject.com/en/3.2/intro/tutorial04/#id3 you can get POST object from request. username = request.POST['username'] password = request.POST['password'] 2) when saving password: you should let django authentication to hash the input password. Use set_password method. plain_password = request.POST['password'] use set_password(password) https://docs.djangoproject.com/en/3.2/ref/contrib/auth/#django.contrib.auth.models.User.set_password 3) better get User object using: from django.contrib.auth import get_user_model User = get_user_model()
Ankit
Please help me. I have created a model where there is a field named as image I am trying to use urls for image but image in the template are not loading
Ankit
Y?
Ankit
No no that is char field
Ankit
Not image
Mirco
No no that is char field
Aaand this has no sense
Anonymous
i need integration with payme who knows?
Ankit
image= models.charfield(max_length=500)
Ankit
And I have paste a image URL from Google then passed that image attribute to template for showing image
Mirco
image= models.charfield(max_length=500)
Why a CharField ? When you have ImageFiekd ?? That's wrong from the beginning
Maxim
i need integration with payme who knows?
google use the ready-made one, if there is none, find a similar payment system for which there are instructions for connecting to a Django project
Anonymous
Ankit
image=models.ImageField()
Then at the image Field can I paste url from Google of image?
Ankit
Image Is not showing
Ankit
I tried and choose an image but It is not working
Ankit
Any django expert out here?
Ankit
Who can help me out
Doragonsureiyā
Any django expert out here?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
ajith
How to check email id is valid or original when signup process
Doragonsureiyā
How to check email id is valid or original when signup process
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