Mojtaba Arezoomand
I know I want know how change databace with sql cod
I dont know if ur using sqlite But if u r using xammp When u turn on the apachi server and mysql You can go to phpmyadmin with this link Localhost:80 Then click on phpmyadmin and write your sql codes
Tukhtamurod
I know I want know how change databace with sql cod
Dont externally make modifications to your db, it may result in errors, because django doesnt know that db has been changed, you can add rows, delete rows, but dont alter fields or change db tables names
Mojtaba Arezoomand
Anonymous
Did anyone use tox in django project ?
Doragonsureiyā
Did anyone use tox in django project ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Axror
Good morning everyone. I have a #question. How can I control registrated users. How can I recognised them???
Axror
I cannot input user to sqlite database
Axror
With createview
Axror
Thanks
Anonymous
Anybody working on OPENCV in your website?
Anonymous
I want to match two fingerprints and i want it accurate, please help
Beka
????
request.user.id
Hasan
Hi How can I control anonymous user?
Beka
Hi How can I control anonymous user?
You can use dispatch method to catch current user. Something like this: def dispatch(self, request, *args, **kwargs): object = super(PostUpdateView, self).get_object() if object.author != self.request.user: return redirect('%s' % reverse('accounts:login')) return super().dispatch(request, *args, **kwargs)
Beka
or kinda this case... if str(self.request.user) != 'AnonymousUser':
Idk
Hpw do I validate passwords set on django in react native or any other framework.
Idk
Should I use DRF for the mobile apps backend to accomplish that ?
Anonymous
Is there any course for Django where i can learn it completely from scratch
Anonymous
🆗
Anonymous
freecodecamp on utube
Any advanced course you know about
Anonymous
??
shashikant
Suppose I have to take input as address from user and before storing into our database ..i want to validate it..can someone help me with that?
G
form.valid is there
Anonymous
Hi 👋 I'm using pytest and pytest-django in an django application and i want to automate this with tox. No idea is it possible or not. Never used tox.
Anonymous
Yes it is
I install tox package and trying to configure are you familier with tox ?
Mirco
I install tox package and trying to configure are you familier with tox ?
https://maddevs.io/blog/testing-django-on-steroids-with-pytest/ In the middle of the page u find the simplest config for tox
Mirco
I install tox package and trying to configure are you familier with tox ?
https://tox.readthedocs.io/en/latest/example/pytest.html
antonov
Hi there! guys we need to create demo mode for our django app. Do you know any best practices for it? Should we create a separate db?
Joseph
Please who knows how to redirect a user login to a student dashboard or teacher dashboard in Django rest framework api
Anonymous
How can i add edit and delete in htm l table using django without reload
Charanjit Singh
Please who knows how to redirect a user login to a student dashboard or teacher dashboard in Django rest framework api
You can use Javascript Axios Ajax For consuming and redirecting to another page
Joseph
You can use Javascript Axios Ajax For consuming and redirecting to another page
Oh ok but please if i will use that to redirect how will I create different classes for each dashboard so the teachers own will be different
Z
is there a Django channel for news ONLY? like the one for Phalcon? (hm, can't link it)
Charanjit Singh
Where you will consume your api to display it on frontend and do all the redirect on that application
Amor
Hi guys, I'm working on a django project where when some user clicks on enable button , email has to to send to only that person . How do I proceed ?? Help me out
Joseph
Oh ok
Manish
https://stackoverflow.com/questions/66741831/put-patch-method-not-updating-the-response-but-changes-taking-place-in-the-datab
Anonymous
Hello
Mirco
Hello
!hello
Doragonsureiyā
Hello
Please move your "Hello" and other social talk to @PythonOfftopic.
Anonymous
I'm working on the Django rest API project
Anonymous
I'm working on the Django rest API project
For my react and react native backend
Anonymous
It's social networking platform for question and answer..
Anonymous
Any suggestions guys??
Anonymous
Like tutorials??
shashikant
Validate ? In which sense
If user has a input a valid address not any random string...
Anonymous
Okay, no suggestion. Thank you
TEMIDAYO
Please what's the different between Django and Djangorestframework?
Doragonsureiyā
Thanks for the help.
You're welcome! 😊
Anonymous
Thanks for the help.
DRF makes it easy to use to use your Django server as REST API
Anonymous
Django rest framework is Django's view class-based view so it's a great option on the top of a Django
Anonymous
It adopts implementations such as class-based views, forms, model validator, Queries set. etc
G
If user has a input a valid address not any random string...
You can create a model with name, city state, zip code etc . Create form to accept all these values Other is to use Django address modules from pypi
TEMIDAYO
I have a project with Djangorestframework then I started another project but while installing django it's saying Djangorestframework not found.
Anonymous
https://code.tutsplus.com/tutorials/beginners-guide-to-the-django-rest-framework--cms-19786#:~:text=It%20offers%20an%20attractive%2C%20web,views%20for%20more%20complex%20functionality.
Anonymous
Hi , I am Interested to learn Django . I am very confused where to start and how to start. Could any body guide me?
Anonymous
Like good resource to learn
Doragonsureiyā
Hi , I am Interested to learn Django . I am very confused where to start and how to start. Could any body guide me?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Thanks
Evgeniy
Hi! Please, how can will set limit_choices_to={'model__in': (name_model_from_other_app)} in content_type = models.ForeignKey(ContentType). For example I should model 'Article' from app 'blog'. blog.article - doesn't work
V
Installtion guides for Django in Windows and creating virtual environment