Aneesh
I want a preview button in model create/edit page
Aneesh
Or any one know model create/edit admin template
Sheshadri
Or any one know model create/edit admin template
https://docs.djangoproject.com/en/3.0/howto/overriding-templates/
Luis
One more doubt, django websites are mobile responsive by default ?
Responsive is about frontend and Django is backend.
Ninja
Prasanna
Hi recently setup a new project, for some reasons /admin in localhost throws 404, been try to figure out. Please help me out.
Prasanna
It says not found: /admin
Prasanna
But I have provide it in urls.py
cj
It says not found: /admin
aren't you using logging to generate logs?
Prasanna
Okay let me setup that and check.
cj
Bro solve my query
1. I'm not your bro 2. I don't know what is your query 3. it's not my obligation to solve your query 4. learn to use Google
Ninja
Then i come here
Amit
Show your urls.py
Phillip
Hey guys,,,I'm trying to create a multi site using django where I have different domain names for each site and I want the sites to share one code base, Plz someone help
Phillip
Is multi-tenant different from django-hosts?
cj
https://docs.djangoproject.com/en/3.0/ref/contrib/sites/
Momin
Hi guys iam watching tutorials of django and i am stuck in models. Py file. Where it "object has no member" i am using visual studio abd its kingmd of "get_or_creat" but its not working on my PC and my tutorials are of older versions. Can anyone help me?
Anonymous
How I check user belongs to a particular group in templates??
Anonymous
I am using dynamic url for rendering pages
Anonymous
I have set home page dynamic url according to the customer
Anonymous
But when I login as admin or any other user it gives error
Anonymous
Because I have a link of dynamic url in home page which works only for customer
Romila
Hi , I'm getting an Integrity Error as duplicate column name status ,as I add status fields in two tables and after deleting migration file I'm getting same error
Romila
Can anyone please help me
Bradypodion
Hi , I'm getting an Integrity Error as duplicate column name status ,as I add status fields in two tables and after deleting migration file I'm getting same error
Never delete migration file. Now: 1. Delete all migrations file, destroy your db, create it again and apply your migration again 2. To get some help for your error you should post some code, or anyway give more details
Romila
Okay
Ç
The hard problem I got, Hope some guys can figure it out.
Ç
Http://dpaste.org/dWBG
Ç
I have google it, but can't solve
Dhruva
How to have number of profile views i.e to count the number of people who viewed your profile
Ç
How to have number of profile views i.e to count the number of people who viewed your profile
Add a field to profile model, and count for every request for profile view
Anonymous
I want do some thing for first post for any users.
Leonardo
guys, how can i create a migration that replaces my column data from 450.098.778-99 to 45009877899?
Carbon
any one is there to help me out run aproject on heroku
Code
@sleonardaugusto s = 450.098.778-99 print(s.replace('.', ''))
Anonymous
Hi! Could you please help me or explain. I have created = models.DateTimeField(auto_now_add=True, db_index=True) updated = models.DateTimeField(auto_now=True, db_index=True) That means dates in these fields calculate in django app and then insert to db. But I need that these dates calculate in the db side not in the Django app. Is it possible? Thanks!
Code
@VPqwerty yes, do it in SQL
Code
with what? Salah Aldeen \
Anonymous
@VPqwerty yes, do it in SQL
You mean like this ?https://docs.djangoproject.com/en/3.0/topics/db/sql/
Amir
DoesNotExist at / Main matching query does not exist.
Anonymous
And there is no other way to do it?
Amir
Enyone know the way to fix the bug?
Anonymous
with what? Salah Aldeen \
I want do some thing for first post for any users.
Code
@VPqwerty yes, raw sql. unless you want to get into 'procedures' and 'triggers'
Code
@VPqwerty ...raw sql would be your best bet
Anonymous
👍
Code
Salah Aldeen 'what' is it you want to do?
Anonymous
Do some code for first post for any user
Code
allways noth need more info
Amir
allways noth need more info
That’s all i know about error… Do u want code?
Code
the complete stacktrace would help
Raja
Hi Guys - I need your help. I am trying to add tags to model. But problem is when user type tag in text field, automatically it do search get relevant tags and then user selects. Here user can select max 4. I am already using Django-taggit
Raja
Please let me know any references
nerdrest
Hello guyzzz please anyone tell about how to redirect one single page to admin page code?.I try to used this code "{% url "admin: index"%}" but not worked from django 3.0.3 version
Code
kartik use caching
Anonymous
Hi, please, i need help How can i show or hide fieldset in admin, after verifying selected value in select. For exampl, if user select PHP, Only question about PHP will be showen..
Doragonsureiyā
❎ George pardoned Code for: Link to a Telegram group or channel (1/3)
Doragonsureiyā
❎ inchidi pardoned Anup for: Link to a Telegram group or channel (1/3)
Shourya
Guys i am building a cors app but i am getting authentication error using rest framework. What i am doing here is i am passing a Url string in url and passing a authentication header for that url authorization... I have used AllowAny permission classes in view
Shourya
But when i run it..i get error for authorization
Shourya
I want to bypass authorization check in rest framework for this particular request..
Shourya
what error?
Incorrent auth credentials
Shourya
Its reading Authorization in header