Anonymous
bluethunder
not working
What error it's giving share
Anonymous
Fatal error in launcher: Unable to create process using '"C:\Users\Lords\Desktop\RL-2\RealEstate-main\env\Scripts\python.exe" "C:\Users\Lords\Desktop\New folder\RL-2\testing\RealEstate\env\scripts\pip.exe" list': The system cannot find the file specified
Владимир
You broke the way to the python because of the transfer
Anonymous
bluethunder
Владимир
Владимир
But it needs package versions after recreate
Anonymous
first i am created the project at \Users\Lords\Desktop\RL-2\RealEstate-main\env so pip list is triggering to there ,after i am moved total project to \Users\Lords\Desktop\New folder\RL-2\testing\RealEstate\ so now iam getting error
Владимир
I understand
Владимир
can you run the code?
Anonymous
jobless
Владимир
jobless
Anonymous
can you run the code?
yeah total project is working fine now i need to move to the production for aws there i need dependences 😔
S
I want to build a full stack website for a cafeteria. How should I go ahead and build the backend part of it using Django?
Anonymous
S
Anonymous
jobless
Владимир
S
ashu
Anonymous
How's it going?
it is working but still i am getting version errors i can handle thankyou for response
Anonymous
jobless
☄️ TITAN ☄️
Hey, anyone has a Django guide. If so, please share it with me ✨
Danya
Hello, I wrote a django registration using email instead of username. The registration goes fine, but the authorization fails and I get the following message
{'invalid_login': 'Please enter the correct %(username) and password. Please note that both fields may be case sensitive.', 'inactive': 'This account is inactive.'} Help me, please)
Anonymous
Danya
I'm entering the correct data
Anonymous
Danya
What file ?
Danya
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
class EmailBackend(ModelBackend):
def authenticate(self, request, username=None, password=None, **kwargs):
UserModel = get_user_model()
try:
user = UserModel.objects.get(email=username)
except UserModel.DoesNotExist:
return None
else:
if user.check_password(password):
return user
return None
This is correct?
Anonymous
Danya
But this error appeared in the condition form.is_valid()
Anonymous
Anonymous
Anonymous
You have to change the redirect function with dictionary
Danya
Anonymous
In redirect u declare like new:home in set form so u have to have it to dictionary
Forever
Anyone please help me 😭
Forever
Suppose If user try to access those page which require login, and if he is not logged in it will redirect it to login page but after login it is not redirecting back to the page user intended to open . http://127.0.0.1:8000/app/login/?next=/app/special/ this is the page it redirect from http://127.0.0.1:8000/app/special if user is not logged in.
Forever
Any help please
IDRIS
Can someone help me how can i create a Add to Cart in my Django project, im Really stuck
Anonymous
In views change if form.is_valid(): instead of form_login.is_valid():
Doragonsureiyā
Believe
Danya
form_login = UserLoginForm(request.POST)
Forever
Forever
https://dpaste.org/7gpek my view
Anonymous
S.F.
Hi
Have any of you used dockerfile with python image:3. 9-alphine
I want make dockerfile for simple django app and small image size
J8n
Top
I am django developer.
Top
Nice to meet all of you
Amir
Guys when I add images to my vue page and "urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)" to urls.py my api stops working and api will respond with 404. is there any opinion?
MHJ
Hi guys I am using Virtual envi in a project django but after that I installed some package such as star-ratings but I can not use it , anyone knows how can I solve this problem
Anonymous
please check how to use on https://pypi.org/project/django-star-ratings/ . if doesnt work then send error message . will try to solve it
S.F.
Yusif
Hi, if i don't modify django User model and continue default. Then can i modify User model? Will this cause me problems later?
Muflone
vr
Any one have idea abou novu library
Doragonsureiyā
Any one have idea abou novu library
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
vr
It's django related only