regarding databases and models.py relation

2023-03-31 Thread Chess Lectures
when we create a table in database , we create through models.py . 
we migrate and apply the changes . 
Issue arises as after creation of table -> i tried to add a coloum manually 
to the db , and wrote the col name in models.py and in views.py as it was a 
time field added, so
data was getting inserted in the database correctly as desired .

Note -> NO MIGRATIONS WERE APPLIED YET .

now I wanted to create a new col named say x , i wrote in models , views nd 
then applied migrations -> it started throwing error -> i stopped the 
creation of new colm .

i applied migrations again for checking if there is any issue -> it showed 
ypu have a unapplied migration that was related to the manuall chnage i had 
done .

so i tried migrating but it failed -> colm name already exists .

MY REQUEST -> ADD A FEAUTURE THAT CAN SYNCHRONISE THE MANUALL CHNAGES IN 
DATABASE WITH DJANGO ORM .
SO we dont fall in the migration error -> it by default migrates when we 
make manuall chnages in the database .


if my request is valid , let me know for any solutions, if it not valid 
,please still let me know why ?

Thank you in advance
 
  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b047463-f3fb-4362-b105-821a224e3d31n%40googlegroups.com.


Migration running in shell, but no change in DB

2023-03-31 Thread 'Martin Heitmann' via Django users
Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have 
not touched it for a while, but now I had to add a field to the models of 
one app. makemigrations and migrate run without any indication of an error. 
But no change occurs in the db. Tested it with an altered models.py in 
another app and the result is the same. Do you have any advice how to 
narrow this down?

Best regards
Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.


University chemical management system

2023-03-31 Thread Mike Dewhirst
Does anyone know of an existing Django based chemical inventory 
management system for a large university?


Thanks

Mike

--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bfe75d67-a06d-910b-4930-69ca09d9ba3f%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature