Ayomide
Roman
Hi guys, I need an advice doing I a django app , what middleware I should add that is not present by default in django ?
Prasanna
Hello, I am building django rest api for android app. Can we get csrf token in cookies in android? I have used in templates, but have a doubt whether it will work for same in android.
Anonymous
How I render my pdf file in media directory of the project through template in django.
Anonymous
I did but not found anything
cj
Sai
Sai
And thing is that can I transpose columns values into column headers
Mirco
Anonymous
How to redirect to url which is posted from admin pannel in django??
Mirco
You need to override admin views
Anonymous
Mirco
Open Django docs and study 😁
Mirco
There's a topic for it
Romila
How to authenticate students using username and password where roll_no is charfield which is having unique=true
Romila
Class Student(models.Model):
user=OneToOneField(User, primary_key=true)
roll_no =models.charfield(max_length=20, unique=true)
Shihasz
Romila
Yes done but still I'm getting error
Shihasz
Doragonsureiyā
Yes done but still I'm getting error
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
Romila
django.db.utils.IntegrityError:
Romila
Vik
can we access MS SQL table data through Django and check same on GUI
Lone
Anonymous
hey, I created users using allAuth, for now they can be seen in users section in admin panel, Now I want to created two types of user, when type 1 user sign's up it shows in Type 1 user in admin section instead of Users
Adonis
hi
Gil
Mirco
Gil
Code
hi, anyone know of any ACTIVE 'wagtail' groups in telegram...besides the Venezuela group?
Code
is @ak4zh writing a book or replying to someone? lol
Akash
I am trying to build something like this:
1) A user joins my website
2) Now he can create multiple projects from dashboard clicking on
[+ Create Project]
3) Once he creates a project he can enter it and fill some forms configuring
4) Only he should be able to access his projects
5) Dashboard will show all his projects.
Project members (assume as telegram users) will subscribe to projects.
Members does not need to necessarily register on website. But they have unique I'd (say chat_id)
So a member with id 1111111 can subscribe to multiple projects.
How should I design my models?
I am thinking:
- abstract user model
- project model with foreign key to user
- Member model inside member app
- Subscription model with project and member foreign keys
Or should I use django_multitenant
Akash
is @ak4zh writing a book or replying to someone? lol
Thinking how to explain and, getting some answers myself while explaining.
When I started to write this I had more blurry idea, but as I tried to explain scenerio my mind itself solved some of my doubts and I came with more clear model pictures as asked above.
Code
avoid multitenant. there are 3 types of tenants, 2 which are too difficult to manage
Akash
Code
yup.. i was going to suggest FK.. even larger corps are avoiding multitenant. Im working on a project and didnt really grasp the complexity until i was 80% through. im too far gone
Adonis
Shaun
Bulat
Hi guys, can you tell me how does work django-oscar, coz in localhost it was working too long?
Rainur
Rainur
Is it good framework for internet shop?
Code
oscar is ok
Xyz
Hello everyone
I want to display a form dynamically
On click of a button
Can someone help
Sheshadri
your template structure is wrong, go read how to create template directories
Opeyemi
good day, i am using django-rest-auth package in a project i am building. i have email verification set to mandatory and it expires within 2 days.
My issue is that after i try using the link after it has expired, i get a weird browzer error message saying
NoReverseMatch at /api/signup/account-confirm-email/MQ:1j3qDl:rdNt45LkoDhdHsE_OUDFQqW95TY/
Reverse for 'account_login' is not a valid view function or pattern name
i would like to get either a redirect to a verification email url on my api or JSON response message instead simplay saying that it has expired. Please how do i go about this?
Muflone
Is this spam? @admin
Sheshadri
Opeyemi
the package is similar to django allauth
Anonymous
Please who has tried the django cartridge ecommerce website by david-gh github
Opeyemi
Opeyemi
rest auth builds on allauth and its settings
Yash
Is Django for professionals by William S. Vincent good ?
Mirco
Yash
Thanks buddy
Mirco
Anonymous
Hi there can anyone help me with update view
Opeyemi
Anonymous
hey guys am getting an error in my project,this is my admin.py
ᐯᑌᏞᏦᗩᑎ📈
how can i get 5 most commented posts?
Anonymous
hey guys
Maz
Damron
Hello everyone!
I've encountered with problem about swagger - I cannot implement it by tutorials, there's always error
TemplateDoesNotExist at /swagger/
rest_framework_swagger/index.html
So, here are some settings
# urls.py
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='Pastebin API')
But that's the case whaen I am not installinng it in the ``INSTALLED _APPS` list - because I am getting
LookupError: No installed app with label 'admin'.
Damron
Gil
Gil
Damron
Sheshadri
???
You have already asked this question in SO https://stackoverflow.com/questions/60235183/django-rest-auth-handling-expired-confirmation-email and you have accepted the answer also, so what's your problem now ?
Anonymous
https://youtu.be/Z6yHuKQSDPQ
Opeyemi
Nitish
_create_user and creater_user function in base user manager are for which users ?
Opeyemi
Sheshadri