Maxim
I did that; still same
maybe you install allauth and run Django in different places?
coder
maybe you install allauth and run Django in different places?
I did Two more different place and another pc same error arise both
Maxim
I did Two more different place and another pc same error arise both
the same computer does not mean the same place tell in detail how you install allauth and how you run Django
Maxim
ok wait;
and by the way, do not forget about the meaning of the name SECRET_KEY
coder
the same computer does not mean the same place tell in detail how you install allauth and how you run Django
steps python -m venv venv Scritpts\activate <= for activate virtual environment pip install django django-admin startproject blog_api pip install djangorestframework pip install django-rest-auth settings.py ---INSTALLED_APPS = [ ..., 'rest_framework', 'rest_framework.authtoken', ..., 'rest_auth' ]. --Urls.py from django.conf.urls import url, include urlpatterns = [ path(r'^rest-auth/', include('rest_auth.urls')) ]
Anonymous
can anyone tell where will I begin to learn python and Django and machine learning courses.
Doragonsureiyā
can anyone tell where will I begin to learn python and Django and machine learning courses.
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Anonymous
and also if will i get a code tester which courses could learn.
Maxim
yes
you know that activation only works to shutdown the shell?
Maxim
Yes i know active end deactivate
and Django also starts with the environment activated?
coder
and Django also starts with the environment activated?
yes but i am using django rest so we need activate;
Maxim
someone is missing something
coder
@MaxZhurkin any idea?
Maxim
@MaxZhurkin any idea?
and yet, how do you run Django?
coder
and yet, how do you run Django?
This way to run my django project : python manage.py runserver
Maxim
coder
how is the virtual environment activated?
[windows] i do run cmd this command: scripts\activate
Maxim
[windows] i do run cmd this command: scripts\activate
how does this affect the environment in which Django runs?
Valery
[windows] i do run cmd this command: scripts\activate
did you install django-allauth? You can check it with pip list https://django-rest-auth.readthedocs.io/en/latest/installation.html#registration-optional
Maxim
what do think. is affect?
activation only works in the current shell
coder
@MaxZhurkin if you have a experience django rest all auth ; share have follow steps(:
coder
are you trolling here?
I feel; i am not do
Anonymous
/////
ARUN
How can I do partitioning of table using django orm
ARUN
I am aware like there is one package named architect but how can we do list partitioning
Bhashkar
Hi Guys, I am little bit confused about (simple tag | filters). I want to create template tag which is used in "base.html" file so where should I place the tag file, inside any specific app or need to create new app for all template tags.?
Maxim
This way to run my django project : python manage.py runserver
is there scripts\python or scripts\bin\python ?
coder
Maxim
this way i do; scripts\activate
answer exactly the question
coder
answer exactly the question
is it wrong way to activate?
Li
is it wrong way to activate?
at least try to delete and create new virtual env and try again
coder
at least try to delete and create new virtual env and try again
just now i do; same way to activate successfully
asterix
Hi folks, I have configured uwsgi with django, I wanted to understand harakiri parameter. what is the idle time for harakiri? RIght now I have set it 300sec as per dev requirement, but I feel its more & it affects performance in some way
Maxim
is it wrong way to activate?
will I get an answer to the question?
coder
will I get an answer to the question?
@MaxZhurkin Thanks for help for allauth error; i got rectify successfully. again thanks to all✅✅✅
Artem
I would appreciate if someone can answer to my question. Here is the link: https://stackoverflow.com/questions/67997245/how-to-fill-html-option-tag-with-data-from-database-in-django/67997339#67997339
Anonymous
Can anyone guide me ,how to work for foreign in on click price card
Jatin
from django.shortcuts import render,get_object_or_404 from .models import Product,Category from cart.forms import CartAddProductForm # Create your views here. def product_list(request, category_slug=None): category = None categories = Category.objects.all() products = Product.objects.filter(avaliable=True) if category_slug: category = get_object_or_404(Category, slug=category_slug) products = products.filter(category=category) return render(request, 'shop/product/list.html', {'category': category, 'categories': categories, 'products': products})
Jatin
how to convert this into class base view
Jatin
list view
Aravind
Is there bank account and routing number fields available ?
Mounted
Hello guys. I use Infinite scroll table, but when load post css breaks down. Maybe someone has met such a problem.
Fes
How to django+json
Snowman
hi everyone , i want auth two table different user admin and employ . so how to do that ? thanks
Anonymous
hi everyone , i want auth two table different user admin and employ . so how to do that ? thanks
{% if user.is_superuser %} For admin {% elif %} For user {% endif %}
Snowman
i'm found this solusion but it's not clear https://stackoverflow.com/questions/19253842/whats-the-proper-way-to-use-multiple-auth-user-model-in-django-1-5
Snowman
thanks
Snowman
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#specifying-authentication-backends
Snowman
sorry i'm new in django
Snowman
i just jump from laravel
Snowman
laravel too easy to custom it
Anonymous
Anyone have django project?
Anonymous
Any ideas for any one?
for views function
Artem
Is it correct way to foreign key a specific field department = models.ForeignKey(Department, to_field='department_name')?
Anonymous
Is it correct way to foreign key a specific field department = models.ForeignKey(Department, to_field='department_name')?
department=models.ForeignKey(Department,default=None,blank=True, null=True,on_delete=models.CASCADE)
Aniesh
how to set password ?
Aniesh
how to set password ?
class SellersSerializer(ModelSerializer): user = UserSerializer(required=True) class Meta: model = Seller fields = ['user', 'name', 'logo', 'vat_number'] def create(self, validated_data): user_data = validated_data.pop('user') user = User.objects.create( email=user_data['email'], role=user_data['role'], mobile=user_data['mobile'], ) seller = Seller.objects.create(user=user, **validated_data) return seller
DG
Hello everyone, can anyone pls help me out , for complete backend part implementation in python for E payment voice authentication.
shalthedeveloper
Hello, As per shortlisting process, you have to perform the following task 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.
shalthedeveloper
Can anyone help how to do
William
1st create 2 app in the Django project
William
Then start 1st task.
shalthedeveloper
Okk
shalthedeveloper
And for database part