..
Thanks.
Damilola
Du u know any link from i can lean thus
https://www.section.io/engineering-education/ajax-request-in-django-using-axios/ This should do the trick.
..
Ok...
Damilola
Ok...
So Ajax is the magic trick most use online to perform their load-in-backgriund "magic" Here is a tutorial on Ajax completely.
..
Ok ok
Damilola
Ok ok
Check out Ajax on Tutorialspoint for a full tutorial on Ajax and the science of it. The bot seems to have eaten up the link I got for you.
..
Oh ok understood
Seth
Hello, could you help me? I want to do a self-filling of a form with django So that when you write the code of an employee, drag your personal data and thus be able to save it in a new table in the database
Anonymous
Hello, I'm making a project with a custom user model, and when I'm trying to create a new model instance which has a Foreing relation with the logged user, it gives me error saying that the user is not in the Auth_user model and I can't understand
Sergio
Hi, does anyone know how I can solve this Django error: "add/change a related_name argument to the definition for field". I have searched in stack Exchange but it has not helped me anything, I ask as a last resort😢
Sergio
When I use title = Models.ForeignKey (Book, related_name = 'title' it tells me that: init() Missing 1 required positional orgument: 'on_delete'
Anonymous
When I use title = Models.ForeignKey (Book, related_name = 'title' it tells me that: init() Missing 1 required positional orgument: 'on_delete'
I think you must to specify the on_delete argument. That means what happens when you delete the model which is related with. For example, ON_CASCADE, means that the model will be deleted too when you delete it.
Slimmy_Monkey
Y'all feeling well 🐱
Sergio
title = Models.ForeignKey (Book, related_name = 'title' , on_delete=on_delete=models.CASCADE)
I think it worked with this, I get an error on the page: no such column: catalog_author.title_id. I'm going to find out how to solve it, thank you very much
Saila
Saila r u learning react js??
Yes. Need to learn for this project
Karthick
How to create custom user in Django rest api
K
Yes. Need to learn for this project
ha okay. Did you tried any certification??
ADI
Good morning.. Anybody know the project deployment any webhosting Please if you have any video link send to me
Doragonsureiyā
Good morning.. Anybody know the project deployment any webhosting Please if you have any video link send to me
Please read the pinned message of the group to know more about this group, the rules and also you'll find resources and learning materials there: https://t.me/Python/1162861
𝕿𝖍𝖆𝖗𝖚𝖓
Any one have python Django project documentation
Python - ERP
Hey, anyone used monkey patch in project ? In which scenario we should use? ?
Vinay
Is there any courses on django orm where it has some advance queries examples?
Complex_101
I created an app using Django Rest Framework and React by fetching the backend data through my computer IP. Now How do I convert that into an ApK and install it in my phone .
Bwaks
Hey am gettings this error------>Reverse for 'profile_page' with arguments '('',)' not found. 1 pattern(s) tried: ['accounts/(?P<pk>[0-9]+)/profile$'] this is my url---------> path('<int:pk>/profile',ProfileView.as_view(),name='profile_page'), and this is my class view ------------->class ProfileView(DetailView): model = Profile template_name='registration/user_profile.html' # success_url = reverse_lazy('home') def get_context_data(self,*args, **kwargs): context= super(ProfileView,self).get_context_data(*args, **kwargs) page_user = get_object_or_404(Profile,id=self.kwargs['pk']) context['page_user']= page_user return context help please
Anonymous
Hello friends How can I create the one time link in django I want only user can open that page from given <a href="link"> go to pafe</a> User shouldn't be able to access that page by direct copy paste link after sometime of that specific link. I hope you will understand If you don't please ask you query
coder
Any one have python Django project documentation
if want django buitin for get it https://docs.djangoproject.com/en/3.2/ ; DFR :https://www.django-rest-framework.org/
Complex_101
https://www.youtube.com/watch?v=cbaNCTCNJ80
Okay thanks but how do I convert it into an ApK
coder
Okay thanks but how do I convert it into an ApK
are you using build react native for front-end mobile application?
Complex_101
are you using build react native for front-end mobile application?
Yaa I've created the front end with react and backend with django Rest Framework.
Saila
No
K
No
Ha okay...
Alda
Hi, guys, I have a question, I have a cart class which stores products the user add to it, ¿how can I pass this class object to an endpoint in Django Rest framework?
Anonymous
Hi team, I have the ssh keys in one location....I am trying to enable https how can I do it
Anonymous
In django
Anonymous
For my app.
Владислав
Good day! Can you help how to get the model from the given name? I make a universal task for Celery for notifications @shared_task() def send_create_notification_task(model_class, obj_id, type): model = ?? instance = model.objects.get(pk=obj_id) return create_notification(instance, type)
Anonymous
Im facing problem pls help
Anonymous
Pls solve this
Anonymous
No migrations to apply
Anonymous
After doing: py manage.py migrate
Anonymous
No migrations to apply
Sabi
Im facing problem pls help
run manage.py makemigrations
Anonymous
Already did
Anonymous
1 command : py manage.py makemigrations 2command: py manage. py migrate
Anonymous
During second command.. Problem is... No migrations to apply
Anonymous
Can anyone help me for django paypal IPN ... Wil be very grateful
Anonymous
http://127.0.0.1:8000/code_gen/%3Cint:id%3E this is my url... The current path, code_gen/<int:id>, didn’t match any of these. this is my error ......<pre><form action="<int:id>" onsubmit="return validate()" method='post'> {% csrf_token %}</pre> this is my html how to resolve this error my user is authenticated
coder
During second command.. Problem is... No migrations to apply
may be deleted "__init__.py " file if is ; replace it __init__.py
Eric
During second command.. Problem is... No migrations to apply
That means none of your models have changed to require a migration.
Eric
Hi team, I have the ssh keys in one location....I am trying to enable https how can I do it
It is not an SSH key that you need but rather a SSL certificate. You can use LetsEncrypt for free to generate an SSL certificate for your webserver, read through the article: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04
Mo
Hi, when i want to load a model in setting.py (DRF) by joblib.load it has this error: does any one know why? ```TypeError: NoneType.new(X): X is not a type object (NoneType)```
The
Hi friends I have very simple question I tried searching answer but its not working Lets suppose i have a model Student with few fields. And input is post request data which is dictionary. How do i save that Ex. data = reauest.data result = Student(data) result.save()
The
suppose data dictionary is like data = { "Name" : "john", "City" : "Delhi" } Like so many keys
Bwaks
Have u passed the pk argument in urls.py
Thanks but have fixed the problem was in the template instead
Anonymous
Useing get('key')
web
Hi.. i need a free program to create a graphic design explain Relational Database Layout .
Anonymous
Please share your code so that I can see where might the problem be
I fixed it, but Thanks! I only needed to delete the database and re migrate. I understand now why you should create the custom user at the start
Jaya
Hey i have my django project created in virtualenv and i want to push that to github repo without pushing virtualenv so can anyone help me out?
Anonymous
Hey i have my django project created in virtualenv and i want to push that to github repo without pushing virtualenv so can anyone help me out?
I use a library called Pipenv, this create you a virtual environment with 2 files in which you have the dependencies. So, when you want to work in other PC only need Pipenv and you write Pipenv install, this install all dependencies in an virtualenv.
Jaya
Do i just activate my virtualenv and then make push commands Or i do not activate my virtual env and then make push commands?
Shidhant
If its not created, create .gitignore file and add the folder
Jaya
Thank you
VISHNU
By elastic search in django ,using suggestion I am getting all the data of the model do anybody know how to show specific data into it.
Anonymous
Do i just activate my virtualenv and then make push commands Or i do not activate my virtual env and then make push commands?
The Pipenv create the files and put then in your project. So, only need the library and in your project folder type in the terminal: pipenv install This will create the files Pipenv and Pipenv.lock. And when you need for example, execute something in the terminal you activate the virtualenv with Pipenv shell. If you want I could send you a tutorial, you'll see it's easy