A
Aneesh
I want a preview button in model create/edit page
Aneesh
Or any one know model create/edit admin template
Luis
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.
cj
Prasanna
It says not found: /admin
Prasanna
But I have provide it in urls.py
Prasanna
Okay let me setup that and check.
Ninja
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
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
cj
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?
Doragonsureiyā
Phillip
Momin
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
Aditya
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
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
Ç
Dhruva
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
Anonymous
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
Anonymous
Code
with what? Salah Aldeen \
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?
Code
@VPqwerty yes, raw sql. unless you want to get into 'procedures' and 'triggers'
Anonymous
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
Amir
Code
allways noth need more info
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
Anonymous
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)
Shourya
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..
inchidi
Shourya
Its reading Authorization in header