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 ?
Ayomide
but using AbstractUser it is giving issue while creating superuser
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
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.
Doragonsureiyā
How I render my pdf file in media directory of the project through template in django.
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Anonymous
I did but not found anything
Sai
What's the error you see ?
Thanks but I fixed that
Sai
And thing is that can I transpose columns values into column headers
Anonymous
How to redirect to url which is posted from admin pannel in django??
Mirco
You need to override admin views
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)
Romila
Yes done but still I'm getting error
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:
Vik
can we access MS SQL table data through Django and check same on GUI
Shubham
can we access MS SQL table data through Django and check same on GUI
I use xampp server to do so. And ya we can access MS SQL through Django
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
Mirco
Of course... django is cms and orm
? Django has ORM not is ORM
Gil
? Django has ORM not is ORM
Thnks for the correction
Mirco
Thnks for the correction
Yw, it's better not to get other guys confused
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
avoid multitenant. there are 3 types of tenants, 2 which are too difficult to manage
django_multitenant uses the third type adding foreign keys
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
Bulat
Hi guys, can you tell me how does work django-oscar, coz in localhost it was working too long?
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
Opeyemi
How are you setting it to expire within 2 days? What is your logic written for it?
its django-rest-auth it does the logic, all i need to do is go to settings and tell it to expire within 2 days
Opeyemi
the package is similar to django allauth
Sheshadri
its django-rest-auth it does the logic, all i need to do is go to settings and tell it to expire within 2 days
Can you point me to that setting in the document ? https://django-rest-auth.readthedocs.io/en/latest/index.html
Anonymous
Please who has tried the django cartridge ecommerce website by david-gh github
Opeyemi
Can you point me to that setting in the document ? https://django-rest-auth.readthedocs.io/en/latest/index.html
right here https://django-allauth.readthedocs.io/en/latest/configuration.html#configuration
Opeyemi
rest auth builds on allauth and its settings
Yash
Is Django for professionals by William S. Vincent good ?
Yash
Thanks buddy
Doragonsureiyā
Thanks buddy
You're welcome! 😊
Anonymous
Hi there can anyone help me with update view
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
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
how can i get 5 most commented posts?
Making Queryset group by posts, catch only first five
Damron
it seems easy, all steps done? https://django-rest-swagger.readthedocs.io/en/latest/#installation
yes, i've done all things as this tut said but maybe i an missing smth
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
Nitish
_create_user and creater_user function in base user manager are for which users ?
Opeyemi
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 ?
in that stack overflow answer, what worked was importing allauth and letting it handle the case, but that obviously defeats the purpose of it being a rest api.