Brutus
So you are having problems with the button to decrease the amount?
Can I DM you I think with screenshot it will be more clear
Jorge
Sure
Anonymous
Can anyone help with the mysql database
Anonymous
Implement ing in django
Doragonsureiyā
Implement ing in django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
...
hello! why can't we use mongodb as dbms on django? why?
Doragonsureiyā
hello! why can't we use mongodb as dbms on django? why?
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
...
Can we use non-relational dbms in django?
cj
Can we use non-relational dbms in django?
you can, but you SHOULDN'T
...
okay, thanks!
Nurhonov
does anyone had this problem:https://stackoverflow.com/questions/71943540/django-manytomany-validation-in-model-layer
Maram
Good evening, Can you explain this statement to me "" When you use a Django Template, it is compiled once (and only once) and stored for future use, as an optimization."", someone wrote it when he explain the concept of context on StackOverflow
Maram
but I didn't understand what he really meant exactly in that statement!!
Dhanik K.
class Cart(models.Model): id = models.UUIDField(primary_key=True, default=uuid4) created_at = models.DateTimeField(auto_now_add=True) database: postgres when i try to migrate gettting error "cannot cast type bigint to uuid" any solutions to this problem ?
Mihir
How did u import uuid?
from uuid import uuid4
Sharma
I have problem in user_passes_tes and login_required
Sharma
Can anybody suggest me good resource to learn these concepts.
Doragonsureiyā
Can anybody suggest me good resource to learn these concepts.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Anyone know about multipe form in django
Anonymous
Anybody use wizard form
Doragonsureiyā
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Eslam
guys i cant fixed this relation "table" does not exist and by migrate i have this Running migrations: No migrations to apply.
Amirhosein
Does anyone needs junior Django developer?
Павел
guys i cant fixed this relation "table" does not exist and by migrate i have this Running migrations: No migrations to apply.
Did you add the application in which you created the model in settings.py to the INSTALLED_APPS list?
Eslam
yes
Павел
And after creating the model and adding the application to settings.py, did you execute the following commands? ./manage.py makemigrations ./manage.py migrate
Eslam
yep
ask
hello I want to use slug of object as a subdomain for DetailView like in this site https://install-download.net/ (choose one item and see url path) How can I do it?
Ruzan
U can use lookup kwargs as slug
Ruzan
lookup_kwargs = slug
ask
lookup_kwargs = slug
I didn't find info about it will it create subdomain from object's slug?
Flam
hello I want to use slug of object as a subdomain for DetailView like in this site https://install-download.net/ (choose one item and see url path) How can I do it?
Try this for url: path('<slug:slug>', views.xyz.as_view(), name='abc'), In models.py, use get_absolute_url() method and render it in your template navigation.
Professor
Hi All Im beginner, from where I should start Django.
Doragonsureiyā
Hi All Im beginner, from where I should start Django.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Flam
I need that slug is not in example.com/first, but first.example.com
Is it deployment or development server? Your question is not detailed enough
ask
Is it deployment or development server? Your question is not detailed enough
I have a simple site with some pages I want to create subdomains in Django admin and depend on subdomains change info on site. For example, in url example.com/page1 title is "Title 1", while in url floor.example.com/page1 title is "Title 2" so I think that I should create subdomain model and page model, connect them by Foreign Key and depend on subdomain show necessary page now I'm working locally
Dominik
Hello everyone, I’m facing an issue which I just can’t get over. Everything is fine on my local, now I’m deploying the app but when I want to run the initial migrations I get this : return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: relation "dashboard_acceptedcurrencies" does not exist LINE 1: ...d", "dashboard_acceptedcurrencies"."updated" FROM "dashboard... ^ Your help is much appreciated! Regards, Dominik
Flam
so in localhost it will show example.com/floor but in production it will show floor.example.com?
Exactly. But floor will carry platform username in production e.g username.example.com/floor
Fan / Ac
I’m not sure since my error is not related to the site model.
well the issue is "relation doesnt exist" so focus on that
ask
Exactly. But floor will carry platform username in production e.g username.example.com/floor
but it is not what I'm looking for it should be like floor.example.com/page
Gbenga
No idea
ask
What does floor represent in that url?
it's just example of subdomain
Dominik
well the issue is "relation doesnt exist" so focus on that
I am but I can’t even makemigrations and also the model does not have any foreignkeys causing relation issues.
Flam
it's just example of subdomain
What you will have is: username.example.com/page/floor floor=slug
ask
What you will have is: username.example.com/page/floor floor=slug
I think that I got a solution thank you very much
Dhanik K.
Accidentally i deleted a empty table of a model class in postgresql , now when i reverted to the migration when that table was created, and run python manage.py migrate again, not able to retrieve that table again (getting error) . How can i create that table??? p. s: using pgadmin 4
Dominik
well the issue is "relation doesnt exist" so focus on that
Was able to fix my issue. The problem was that I had a form in my forms.py which was depending on DB data and that has caused the error. Although a little strange for me that this causes problems in the migration creation process.
Adam
Please advise: I create a new user, everything is fine. But when I go into the admin and enter data, it displays that the data are incorrect. 3 users have already been created Code in models.py (overriding the base user) - https://www.toptal.com/developers/hastebin/iqehipibem.py
Adam
On the admin page i have only mail and password fields
The date_of_bearth and username fields are required for registration. But when logging into an account they are optional as I suppose
Ahmed
Can I retrieve data from realtime database without refreshing my website ?
cj
he asked if he can... and, yes he can... he didn't ask what to use or how to do that ¯\_(ツ)_/¯
Rishi
Is django easy or not for rest api
Rishi
I am beginner mern developer But facing difficulties in writing api on nodejs
Aniket
How can I check duplicate data in database in Django
Rohan
How can I check duplicate data in database in Django
Using a query with a filter() clause
Saddam
Did any body have cheat sheet or videos about sessions, cookies and session id
cj
Did any body have cheat sheet or videos about sessions, cookies and session id
https://docs.djangoproject.com/en/dev/topics/http/sessions/
Adam
Maybe who knows why the username is indicated instead of mail, and the email is indicated instead of the username? Models.py - https://www.toptal.com/developers/hastebin/uzoxaluhiq.py