Habib
Hi there,
I have a django project(a basic api) that does something
i connected it to react expo for mobile application
So lt is a mobile app with django backend ...
In development mode i am able to click the button on app and trigger the post request but after creating apk for that expo application that button doesn't work...
I don't know what is wrong is something wrong in my django project or is it the expo
theDisgrace
Habib
What screenshots should i provide could you specify pls
Actually there is nothing displayed at all
Habib
Ok...sorry for such a broad question
Let me narrow it down
"Whenever we call api like for example my project
Is it necessary for the api url to be "https"?
Charly
Vishnu
vaseem cholakkan
Anybody here know how to block requests from specific js along with splinter, selenium
vaseem cholakkan
i want to block analytics requests while iam testing with my splinter ,selenium test
Shaheen
What does the 'through' do in M2M ?
Maxim
J J
offtopic
read only 48 hours
John
How to generate OTP in django
Anurag K
Can anyone suggest me some tutorial for learning django rest framework
Maxim
Alirza
hello friends does anyone have a tutorial on how to create a login and signup model whit a phone number?
Nani
Error:database is locked
Nani
How to solve it(sqlite)
.....
Artyom
Hi everyone. I want to add Databases settings later (after some initialization). How should I do that correcty ?
Mirco
Jithie
Hi guys,
Which one is the best django admin template ?
Any suggestions ?
Anshuman
Anshuman
It means your sqlite is reached its higher limit
bluethunder
!mongodb
Anonymous
Muslim Ali
path("register/", RegisterView.as_view(), name="rest_register"),
I need to add first_name and last_name to register, how about that ?
Maxim
∆
offtopic
read only 48 hours
John
Azhan
How to access onetoone field in views.py
Jithie
~𝙰𝚋𝚍𝚞𝚛𝚊𝚡𝚖𝚘𝚗
Ahmed
Hi admin can i upload image for code here
Ahmed
Ok thanks for u
Anshuman
Hi goodmorning,
Does anyone know how we can integrate the GST port API with our django code ?
CURLY
i want to learn django too
Abhi
CURLY
ok thanks
Behzad
Hi
I can how connect DRF and next js ?
nextjs :I love only use fronted. no backend
how read drf data with next js?
DeathLikeSilence
hello everyone
Do we need any setting for session when we use session in our project ?
i mean do we need change things or add things in our setting.py or in other files ??
Anonymous
Devendra
Is Django Enough for Building LMS and can anyone Explain Structure
DeathLikeSilence
Yes!
thnks
what should i change or add !
Rohan Ekke
If I delete sqlite folder or file, it will delete database. Then if I migrate again, does it will show any error or my app will run without database.
Anonymous
Anonymous
I think MERN stack is better than Django. What do you think?
Rohan Ekke
No
What if same process on migrations folder.
Mirco
Anonymous
I believe the Django task is becoming more challenging.
Anonymous
Yeah. I got it.
Anonymous
But MERN stack is better
Anonymous
Let us discuss in detail
Stormy
Behzad
Anonymous
I can help you
Eng Mohamed
Ivan
Hi! I have one problem: in tg bot tag "input file" doesn't work in anroid, but in another os it works. How i can troubleshoot this?
Maxim
Mohsen
rule #1: speak English
Arshiya
Hi guys
I created a custom user model with AbstractUser
Now i want to make a CreateUserView
So i use CreateView
When i post a new user i get this error
What should i do?
Manager isn't available; 'auth.User' has been swapped for 'accounts.User'
Anonymous
Victor
Did you set a variable AUTH_USER_MODEL in settings.py?
Arshiya
Arshiya
Anonymous
Do you use BaseUserManager?
Anonymous
Arshiya
Do you use BaseUserManager?
No.
I didnt work with any manager
Just create a custom user model
And set
AUTH USER MODEL to it.
Every thing is good in admin panel.
The problem is with create view
Arshiya
Victor
Anonymous
I think so.
Arshiya
Could you show how you make CreateView? Show me the imports too.
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render
from django.views.generic.edit import CreateView
from .models import User
class CreateUserView(CreateView):
model = User
form_class = UserCreationForm
template_name = 'user_create_form.html
'
Victor
Your UserCreationForm don't use the CustomUser, i think so... So, customize your UserCreationForm class:
from django import forms
from .models import User # customUser
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = User
Arshiya