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.
Ujjwal
Alex
Alex
So you don't have to call it. It is just for inspection.
Ujjwal
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
DBs are a cornerstone of most web apps. I encourage you to pay as much your time to this theme as it needs.
Ujjwal
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.
Ujjwal
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
cj
Alex
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
NIMESH
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
NIMESH
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
Raffaele
Thanks a lot for your review
cj
Raffaele
Raffaele
Two scoops of django is old, isn't it?
cj
Raffaele
But it is for django 1.8?
cj
cj
they are actually releasing a new version for Django 3 in these days
Raffaele
Raffaele
Raffaele
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?
cj
Raffaele
How it can help me?
Raffaele
cj
How it can help me?
it will help you to write a way better code and you'll learn good practices
Raffaele
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
cj
Mirco
inchidi
Raffaele
cj
Raffaele
Raffaele
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
Raffaele
I like your statement
Cheap
CodeCypher
CodeCypher
cj
(also that helps people avoiding those "I can't load CSS, why?" issues that they are struggling more than they should)