P.T.K
Any body have django project
Alex
I'm not a mysql guru, but it seems that your problem is rather with mysql server, not with django
Ujjwal
I were not worked in mysql but postgrelsql . Their before migrate you have to run Python manage.py makemigrations Than a file created in migration folder. Starting with 0001 or some thing Than you have to run Python manage.py sqlmigrate app_name 0001 Than run Python manage.py migrate.
Alex
So you don't have to call it. It is just for inspection.
Ujjwal
When problem comes with database i alwase do that create a new database and connect it to project. Than remigrate
Ujjwal
But in this case old data i can't access
Alex
But in this case old data i can't access
I've said that it is very naive approach
Ujjwal
I've said that it is very naive approach
Yes, actually I just learn django basic. I have to know various thing
Alex
DBs are a cornerstone of most web apps. I encourage you to pay as much your time to this theme as it needs.
Alex
Actually it is much complicated - there are 2 big themes. A DB server it self (commands, features, pitfalls) and data design - how you decompose your problem in actual tables and columns and how you connect them with each other.
Siddharthan
Hai guys when I am trying to save the data from ModelForms to Database my data is not saving into database and also none of the errors are showing
Siddharthan
use a debugger to see what's happening
Can you please help me how to do that I am new to django
cj
Can you please help me how to do that I am new to django
use ipdb or pudb or if you're using and IDE use its breakpoints
Siddharthan
Nayan
Hi can someone please help me I have a table with me , i want to use filter option on table data ,basically the data column will be hyperlink . For ex: Table - rows will be multiple Name,status,product Xyz,processing,abc Xyz2,shipped,ijk My intial url will be like 192.0.0.127://home Now when i click on Xyz( it should be hyperlink ) my url should like something basically it should filter the table 192.0.0.127://home?Name=Xyz ,Now i have this filter link which is filter by name but again if i click on Processing ( it should be hyperlink ) The filter should look like this now192.0.0.127://home?Name=Xyz&status=processing The same thing apply for product column also . I KNOW THIS USING DJANGO FILTER SEARCH FOR TABLE BUT I WANT THIS FROM TABLE DATA AS THE COLUMN ROWS WILL BE HYPERLINK FOR FILTER .
Anonymous
Hello Any idea about a good customer onboarding code with document uploads, similar to student registration form for college. Or at least a link to a website where I can learn how to do it
Anonymous
How to store list data in model
happy
Any body know how to integrate wordpress website with django
Anonymous
Any body know how to integrate wordpress website with django
There is a connection, wordpresss has rest api built in, try to use django rest framework with it
Anonymous
How to store list data in model
This would be helpful https://stackoverflow.com/questions/1110153/what-is-the-most-efficient-way-to-store-a-list-in-the-django-models
b
I deleted all the migration, and now I'm getting errors, any idea what should I do?
b
IntegrityError at /create-email-draft/ NOT NULL constraint failed: sendapp_emaildraft.user_id
Anonymous
This would be helpful https://stackoverflow.com/questions/1110153/what-is-the-most-efficient-way-to-store-a-list-in-the-django-models
Thanks Salah Ali, I didn't understand I saw that , I need to create model like name and ip address but ip address is in list
Anonymous
Can you give an resources to look up
https://pypi.org/project/django-wordpress-api/ https://github.com/swappsco/django-wordpress-api http://django-wordpress-api.readthedocs.io/en/latest/
Anonymous
I wish some of these are helpful
Raffaele
Hello everyone! Thanks to the help of the community I managed to develop a login system (django), for anyone wishing to take a look, help, advice or simply read it, take a cue or copy it, the repo is here: https://github.com/HttpRaffa24/Login_system-Django-
cj
Hello everyone! Thanks to the help of the community I managed to develop a login system (django), for anyone wishing to take a look, help, advice or simply read it, take a cue or copy it, the repo is here: https://github.com/HttpRaffa24/Login_system-Django-
🤔 well... it doesn't look thaaaaaat bad, you should read a little more about good practices and clean code tho, so you can write a much better code 😊 I can say that's a good project for a very beginner guy just learning django by his own, but I suggest you to take a read to the official tutorial and documentation, so you can have a better approach on how to write a better quality Django code, also if you have the possibility to buy the "Two Scoops of Django" book buy it, it worth the money, and one last question: Why are you still using FBV? 😉
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Raffaele
Thanks a lot for your review
Raffaele
Two scoops of django is old, isn't it?
Raffaele
But it is for django 1.8?
cj
they are actually releasing a new version for Django 3 in these days
Raffaele
heh.... no....
Ahhh sorry
Raffaele
Before starting this project, I believed that FBV was so much simple
Raffaele
But I don't understand why you say this
Raffaele
Thanks
cj
But why?
because you can take advantage of class inheritance and more other advantages from Classes
Raffaele
because you can take advantage of class inheritance and more other advantages from Classes
Function-Based Views Simple to implement Easy to read Explicit code flow Straightforward usage of decorators Hard to extend and reuse the code Handling of HTTP methods via conditional branching Class-Based Views Can be easily extended, reuse code Can use O.O techniques such as mixins (multiple inheritance) Handling of HTTP methods by separate class methods Built-in generic class-based views Harder to read Implicit code flow Hidden code in parent classes, mixins Use of view decorators require extra import, or method override
Raffaele
I've read this. Is it true?
Raffaele
How it can help me?
cj
How it can help me?
it will help you to write a way better code and you'll learn good practices
Raffaele
it will help you to write a way better code and you'll learn good practices
Please don't look me so bad... can I find this book on the internet???
Cheap
i have quite a bit experience with django (1.8-2 years) and was thinking for contributing to django for 2021 google summer of code, i was planning to implement choice for User model to use whether email or username for authentication( because most people want email instead of username and it will also avoid unnecessary extension of model using OneToOne fields) can anyone guide me on how to start and is it even worth it or could you recommend some other ideas to contribute to django? i have started reading auth middlewares as of now. Also what potential challenges i can face ?
Raffaele
you convinced me... I'll use cbv
Raffaele
It is much better
Raffaele
you'd better buy it, it worth every penny
I'm very proud of my login system even if it isn't so good
cj
Was it so bad?
as I said... it doesn't look thaaaaaat bad, but I'm sure with some more practice and reading and following good practices, you can do it better, don't give up!
Raffaele
I like your statement
cj
Why not save the css files in a static folder
I can say for him: because it's better to use a CDN and don't overload the server with some unneeded things like serving static files
CodeCypher
I can say for him: because it's better to use a CDN and don't overload the server with some unneeded things like serving static files
What if the website cannot be served over the internet, say its a local application on a LAN what happens? Just asking.
cj
What if the website cannot be served over the internet, say its a local application on a LAN what happens? Just asking.
that's a different thing and not so common, for those specific rare cases yes, you should have static files locally, but that's not a common thing that happens so often so using CSS/JS files from a CDN is a perfectly good thing to do
cj
(also that helps people avoiding those "I can't load CSS, why?" issues that they are struggling more than they should)