admin framework help
I need help doing something probably very simple. so i have two tables, Customers and Orders. now i know how to make access to both tables sepratly in the admin framework. but i need something else. i was wondering if there was a way to access the orders table through thr Customers page. like say i chose to view the information for the customr Juan Mase. i click on his name and i see all of his info, is there a way that along with this info, a button is added that might say view customer orders and when i click on it, it brings me to the orders table page that correspond to Juan Mase. like a link button or something? thanks -- View this message in context: http://old.nabble.com/admin-framework-help-tp29356370p29356370.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how to make readonly in change but editable in add?
I was wondering how to make a field readonly when you click on it or want to change the record. and i have done that with the readonly_feilds method. but that makes it to where you cant add information to that feild when you add a new record. is there something i can use where you are not able to edit a feild in the change view, but when you add new, you are able to edit the field until you press save? thanks alot -- View this message in context: http://old.nabble.com/how-to-make-readonly-in-change-but-editable-in-add--tp29338689p29338689.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to access a MySQL table in Django?
yeah, i was able to find that exact thing yesterday, and it works and i am so happy. now i have one more problem, i cnat get oracle-cx to work. it says that "no software installation was found" or something like that. i have the python-mysql working but i cant seem to get the oracle database connector to work. got anny suggestions? im running a linux platform with Ubuntu. Alex Robbins wrote: > > Whenever I have to pull data from legacy databases, I use './manage.py > inspectdb > models.py'. That will dump models for the database. Then I > rename the models to make more sense, and use the orm to get my data. > > Alex > > On Jul 28, 12:58 pm, snipinben <benjamin.calderon1...@gmail.com> > wrote: >> I have the python-mysqldb installed already and i have django up and >> running. when i installed the python-mysqldb i had to hack the code kind >> of >> so that it didnt check if the versions were the same so that it would >> work. >> I got this idea from online. but anyways, I am wondering how to access >> records that were already in the database before I started the project. i >> know how to access records from data that i inserted through tables in >> the >> models.py file. but i have no idea how to access them straight from the >> database itself. please give me any info you got. thanks >> -- >> View this message in >> context:http://old.nabble.com/How-to-access-a-MySQL-table-in-Django--tp292893... >> Sent from the django-users mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- View this message in context: http://old.nabble.com/How-to-access-a-MySQL-table-in-Django--tp29289314p29297565.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
How to access a MySQL table in Django?
I have the python-mysqldb installed already and i have django up and running. when i installed the python-mysqldb i had to hack the code kind of so that it didnt check if the versions were the same so that it would work. I got this idea from online. but anyways, I am wondering how to access records that were already in the database before I started the project. i know how to access records from data that i inserted through tables in the models.py file. but i have no idea how to access them straight from the database itself. please give me any info you got. thanks -- View this message in context: http://old.nabble.com/How-to-access-a-MySQL-table-in-Django--tp29289314p29289314.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.