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
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"?
Vishnu
Hi all I am working in a support project now having 2 years of exp but wanted to switch my career to django developer. Can anyone suggest me what are the skills I need to learn so that I can switch as a 2 year exp person as django developer
First of all you should learn python, then django and django rest framework. Learn SQL. If you want to become a full stack developer instead of just being a backend developer. Learn JavaScript, HTML, CSS then learn some frontend framework like Angular or React jS library.
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 ?
Ædel
What does the 'through' do in M2M ?
it creates a kind of bridge table, a model in the middle that you can add extra fields to.
Maxim
it creates a kind of bridge table, a model in the middle that you can add extra fields to.
wrong such a table is created in any case field specifies which model table to use for this purpose
Maxim
J J offtopic read only 48 hours
John
How to generate OTP in django
jūdê
How to generate OTP in django
Search for PyOTP package on pip
Anurag K
Can anyone suggest me some tutorial for learning django rest framework
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 ?
Jithie
Hi guys, Which one is the best django admin template ? Any suggestions ?
Anshuman
It means your sqlite is reached its higher limit
bluethunder
!mongodb
~𝙰𝚋𝚍𝚞𝚛𝚊𝚡𝚖𝚘𝚗
Hi guys, Which one is the best django admin template ? Any suggestions ?
Jazzmin django-admin-interface Django Material if your python version 3.7 or higher you also can use django-unfold
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
Azhan
How to access onetoone field in views.py
~𝙰𝚋𝚍𝚞𝚛𝚊𝚡𝚖𝚘𝚗
Thank you so much ❤️
you're welcome
Ahmed
Hi admin can i upload image for code here
Charly
Hi admin can i upload image for code here
No, And why you want to use an image for code? REad rule 5 on how to post 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
i want to learn django too
Try docs and YouTube
CURLY
ok thanks
CURLY
Try docs and YouTube
do you work in django
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 ??
Devendra
Is Django Enough for Building LMS and can anyone Explain Structure
Charly
Is Django Enough for Building LMS and can anyone Explain Structure
Yes. We can't explain the structure because the kibnd of desitions you need to taky to design your system
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
I think MERN stack is better than Django. What do you think?
Rohan Ekke
No
What if same process on migrations folder.
Anonymous
I believe the Django task is becoming more challenging.
Rohan Ekke
I think MERN stack is better than Django. What do you think?
I think django is package of MEN and also it's easy and productive. React can be done externally and django have dbs inbuilt.
Anonymous
Yeah. I got it.
Anonymous
But MERN stack is better
Rohan Ekke
But MERN stack is better
Everyone going for mern stack, while hears lot of opportunities incoming.
Anonymous
Let us discuss in detail
Anonymous
I can help you
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'
Victor
Did you set a variable AUTH_USER_MODEL in settings.py?
Arshiya
You should make manager.py file.
Can you explain more pls?
Anonymous
Do you use BaseUserManager?
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
You should make a new Manager.py.
And what should i put in this?
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