Arjun
Any idea regarding which is the best django testing tool
Arjun
Unit test cases for python??
Arjun
Any good test framework
Arjun
??????
Django Bot
>> Jobs - Back-end Developer (Python)
Richard
Guyz i want to learn django beginner can anyone give some link to develop i am new to python.
Anonymous
Hi, How can I troubelshoot my wep application? I just create a CustomUser from AbstractUser but i can't login in admin page that specified in url . py, how can i find solution? for this problem or something like this that i have not any error like normal error i just get this: Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive. but i check my user and password 5 times.
Anonymous
check lower/uppercase: it's different
i checked it before, for 5 times. wait a second sorry i think i find my problem
Anonymous
ok, i'm curious. tell us if you resolve :)
☺️ i guessed i can use this: is_active = models.BooleanField(_('active'), default=False) for my custom user but it disabled by default for my super user too. :)
Anonymous
sorry for my bad english XD
biswaz
Want to set a default value for a foreign key. The problem is, of the default key is not present at the time of creating the db at, say production it will through an error. What's the correct way?
biswaz
*throw an error
Rohan
The foreign key relation should not exist if the key doesn't exist either.
NRC
Hello friends... I have created website using django for the cobol developers.. this site analyze the cobol copybook and give its details.. chek it https://nilchoud.pythonanywhere.com
Django Bot
>> Links - Watchtower: Python CloudWatch Logging — Watchtower 0.0.1 documentation - omrikiei/aws_logging_handlers: AWS integration for python logging handlers( - Django Admin Cookbook — Django Admin Cookbook 2.0 documentation - Allow a Django command to use a file or stdin / stdout | Hugh Grigg | Londo - python - Testing Django commands file or stdin - Stack Overflow - python - In Django, how does one filter a QuerySet with dynamic field looku
Django Bot
>> Links - Workshop: Test-Driven Web Development with Django — Test-Driven Django Deve
Klim
Hello everybody. Can somebody help me? Do you know some libraries for django which are used for confirmation token? I have to use it for email-only registration and activation account with password changing after
Django Bot
>> Links - 23 Advantages of Python and Django in Web Development
Klim
Yes all will be fine, if i use REST. Im using Graphql
Anonymous
Yes all will be fine, if i use REST. Im using Graphql
🤔ops, sorry you didn't mention that, I have not any suggestion please wait for others :)
Django Bot
>> Links - Handling Multiple Forms on the Same Page in Django | Codementor
Anonymous
I just learn Python, how can I start implementing what I know and start project
Someone
Hi, I am blocked in a requirement .. I am having a model and registered it in admin.. for couple of fields i need dropdown of distinct values from database, but how to i do that? Thanks
Leo
I just learn Python, how can I start implementing what I know and start project
I just learn driving, how can I start what I know and start journey? 🤔
Leo
Hi, I am blocked in a requirement .. I am having a model and registered it in admin.. for couple of fields i need dropdown of distinct values from database, but how to i do that? Thanks
See the "choices"-paramter in the model field reference, you can pass a touple in a certain format and it will appear as drop-down in admin sites and Auto generated model-forms
Leo
Funny, not joking #serious
You started with the jokes. What you sent was no real question, what kind of answers do you expect from that?
Anonymous
I mean what are the requirements I need to develop django web frame
Someone
See the "choices"-paramter in the model field reference, you can pass a touple in a certain format and it will appear as drop-down in admin sites and Auto generated model-forms
Yes but choices we have to pass tuple .. but i have queryset and it might differ everytime as per data in another db.. so dont we have any other way? Is it like every time i have to create tuple from queryset and do i have to pass it to choices ?
Leo
I mean what are the requirements I need to develop django web frame
A PC, a keyboard, a mouse, Python, Django and preferably an IDE
Someone
Sounds like an regular Foreign Key to me? 🤔
Not a FK .. the database which i want to use is totally different which already got data in it which i have to use for content generation .. i have created models from the existing db, but it doesnt have any link to the model form which i use
Leo
I found default_token_generator
Why use a library at all? Just generate some random token or a hash and store it, eg. as a field in the user model or in a seoerate model.
Leo
So i should create 2 fields in my model. reset_password_token && confirmation_token?
You could, yeah. Or you create a second table for password changes where you store the token together with the user it's valid for and some kind of expiracy date if you want
Leo
You could clean up this table from time to time
Leo
Or you put it in the user model itself, since no user should need more than one valid token at a time
Klim
Or you put it in the user model itself, since no user should need more than one valid token at a time
What is the best practice? Create new table with FK user_id or create this fields in user table?
Leo
Just as you prefer
Leo
And depends on how large you expect the userbase to be
Leo
For small projects I think I would use the field, for bigger ones the seperate model to reduce data traffic (Keep in mind the token data will always be transferred from the database to Python even though you don't need it, when you store it with the user itself)
Klim
Okey thank you
Anonymous
Hi every body I want desige a DSS web app witch color is better than for it ??
Anonymous
I want job in django profile and i am a fresher can any one help me out
Anonymous
Anyone here familiar with buildozer/kivy
Django Bot
>> Links - How to Structure Django Projects | James Beith - Django Admin Cookbook — Django Admin Cookbook 2.0 documentation - ezaquarii/openvpn-at-home: OpenVPN PKI stuff with Vue.js, Semantic UI and D
feggy
I've started making a ecommerce site using "Django 2 by example" book. Everything is quite basic but I couldn't understand what REST API and its use is? what does they mean by consuming a REST API?
feggy
any resource available for it?
Mirco
any resource available for it?
https://www.smashingmagazine.com/2018/01/understanding-using-rest-api/
feggy
thanks.. gonna check this out
Mirco
Anonymous
any resource available for it?
Get this book Python for Web services
feggy
alright 👌 thanks guys
inchidi
since no one mention it, django rest framework is the best for building rest api with django
feggy
👍👍👍👍
Django Bot
>> Links - Django 2 by Example
Rajat
since no one mention it, django rest framework is the best for building rest api with django
It's awesome. I just made a web service system using Django Rest Framework. It's really good.
Django Bot
>> Links - Test driven development in python - How to Structure Django Projects | James Beith - Obey the Testing Goat! - Test Driven Development with Python and Django - TDD with Django - BeDjango: Top 6 Django Decorators - The Book - The Book - Converting an integer id field to Foreign Key field without data migration
Django Bot
>> Links - The Book - Test-Driven Web Development with Python
Django Bot
>> Links - django-mjml - python - Multiple Django Databases - Map Model to Database in Same Applicat - Multiple databases | Django documentation | Django - How to Configure Multiple Databases in Django the Simple Way
inchidi
Django Newbie Mistakes (Score: 106+ in 1 hour) Link: https://readhacker.news/s/3MbN6 Comments: https://readhacker.news/c/3MbN6
Django Bot
>> Links - The Book
Django Bot
>> Links - NewbieMistakes – Django - NewbieMistakes – Django - Django Newbie Mistakes - How to Structure Django Projects - The Book - Test driven development of django