One to Many insert into Postgres

2008-12-11 Thread Ana
Hello, I am converting from PHP to Django. In my Postgres database I have three tables: models.py code: class Publication(models.Model): pubtitle = models.TextField() def __unicode__(self): return self.pubtitle class Pathology(models.Model): pathology = models.CharField(max

Re: One to Many insert into Postgres

2008-12-12 Thread Ana
tofer...@gmail.com wrote: > On 11.12-07:45, Ana wrote: > > [ ... ] > > > I am converting from PHP to Django.  In my Postgres database I have > > three tables: > [ ... ] > > duplicate key value violates unique constraint > > "fsafety_pathpubcombo_pkey" &

Need Drop down menu code

2008-12-18 Thread Ana
. This question seems like it should be a typical example in a tutorial, but I cannot locate a straightforward example of how to do this. I am new to python and django, so am taking baby steps forward. Thanks, Ana --~--~-~--~~~---~--~~ You received this message

Re: Need Drop down menu code

2008-12-18 Thread Ana
x27;m asking so many questions, but I have to decide in the next few weeks whether to continue pursuing Django or stay with PHP. Thanks, Ana On Dec 18, 9:47 am, Justin Myers wrote: > > How do I write the drop down menu on the index page to then > > retrieve the value from the drop down

Re: Need Drop down menu code

2008-12-18 Thread Ana
Hello Dj, Yes, this is what I need. I just have to get it working and I will be on my way. Thanks, Ana On Dec 18, 10:35 am, "Dj Gilcrease" wrote: > Do you mean a select form item or a mouse over drop down menu? > > If you mean a select dropdown an examplehttp://dpa

problem with adding foreign key to table

2008-12-22 Thread Ana
t researchproj table with just one tuple. I've added, deleted and done acrobats trying to get the admin to accept the column contact_id in the researchproj table. I have checked the sequence numbers for all tables, and also any referential integrity issues with all the table

Re: problem with adding foreign key to table

2008-12-23 Thread Ana
Thank you all for your response. I will try the encoding resolution. Ana On Dec 23, 1:29 am, SteveMc wrote: > The other reply was correct; it's a character encoding issue. Take a > look athttp://www.postgresql.org/docs/8.3/static/multibyte.html- I > suspect you will need to run

How do I get django to display the results of html tags?

2008-12-29 Thread Ana
tags with the unitalisized name. How do I get django pages to display the results of html tags? Thanks, Ana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: How do I get django to display the results of html tags?

2008-12-29 Thread Ana
Hello Ramda, Here is the line of code in on my html page: {{ publication| escape }} How do I create the syntax for {{ tag|szafe }} ? I'm just learning how to create the html templates with Django, so please be patient. Thanks, Ana On Dec 29, 11:07 am, "Ramdas S" wrote: &

Re: How do I get django to display the results of html tags?

2008-12-29 Thread Ana
Hello Ramdas, Thank you! It worked. Ana On Dec 29, 12:08 pm, "Ramdas S" wrote: > sorry its safe > > try > {{ publication| > safe }} > > it usually works for me. > > Next time, can you put your code in dpaste.com, it will be easier for others > to help

Sending id to new template - beginners confusion

2008-12-30 Thread Ana
Hello, Please see the following: http://dpaste.com/103798/ Thank you, Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com T

Re: Sending id to new template - beginners confusion

2008-12-30 Thread Ana
piece was very well documented and I had that part up and running in a few days. Thanks, Ana On Dec 30, 10:27 am, "Ramdas S" wrote: > fsafety/search_detail283, this does not make sense. Your regular > expression in urls clearly is looking for a number. Can you dpaste the

Re: Inline problem in Postgres but not MySQL

2008-12-30 Thread Ana
Hello Peter, I use Postgres and have success creating a manytomany table. See: http://dpaste.com/103824/ Ana On Dec 30, 10:29 am, Peter wrote: > I have two models: Person and Telephone. A person can have many > telephones but a telephone belongs to at most one person. The models

Re: Sending id to new template - beginners confusion

2008-12-30 Thread Ana
Hello Ramdas, Thanks! I will work on it. Ana On Dec 30, 10:54 am, "Ramdas S" wrote: > The models need to be rewritten. It might be a better idea use a DateField, > you need to not worry about having a seperate foreignkey for month and year. > > Try using a slug, inst

permissions

2007-09-05 Thread Ana
visible for update and delete templates. I'm new in Djano so it may seem a simple question but is there some way to pass on user permissions? Thanks in advance, Ana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

hidden fields

2007-09-07 Thread Ana
Hi, I'd like to have "last modified by" and "owner" fields in my application. I'd like to set fields value automatically, and I want those fields to be hidden. Is there any way I can do that? Thanks in advance, Ana --~--~-~--~~~

Re: Initial value for a choices field in admin?

2007-09-13 Thread Ana
lt keyword but in my case it also was unavailable. I also tried the method You suggested but there is no difference - the initial value is still dashed line. Is there any way to make out with it? Thanks for any help, Ana --~--~-~--~~~---~--~~ You received th

sessions and cookies problems

2007-09-20 Thread Ana
Hi, I have problem with sessions and loggin function in my application. When user wants to login but enter wrong username or password and click "ok" the wrong password error occurs and that's correct. But when the user wants to correct a mistake and click "ok" en error: "Error: no_cookies = True."

Re: sessions and cookies problems

2007-09-21 Thread Ana
PROTECTED]> wrote: > There is the same problem with me for many days~~ > "Username: Your Web browser doesn't appear to have cookies enabled. Cookies > are required for logging in. " > > Help~~thx > > may be clear the session table wi

Re: hidden fields

2007-10-02 Thread Ana
Thanks RajeshD :) It wasn't exactly what I wanted to do but it was helpful. On Sep 7, 4:45 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Sep 7, 9:55 am, Ana <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'd like to have "last modified by" and &qu

combine generic views - object_list and object_detail

2007-10-05 Thread Ana
Hi, I'd like to get to know if there is possibility to combine generic views - object_list and object_detail. In my application I have object_detail template showing Resource details. The details are resource_name, object_id and resource_reservation_reasons. Resource_reservation_reasons should be

Django 1.4.3 contact_form

2013-03-04 Thread Ana Molf
I can¡t solve the follow error def contact(request): if request.method == 'POST': form = ContactForm(request.POST) if form.is_valid(): asunto = form.cleaned_data['asunto'] recado = form.cleaned_data['recado'] email = form.cleaned_data['email']

Trouble with Django Tutorial Part 2

2015-12-09 Thread Ana Ng
I'm new to programming in general and am learning Django 1.8.7 for a new job. The polls tutorial on the official site was recommended, and everything goes smoothly until I attempt to migrate the new classes created in part 1. When asked to migrate the classes with *python manage.py makemigratio

problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
hi guys, so i'm doing a project and there's a part that says i need to do the migrations but when i do that i get this error "Traceback (most recent call last): File "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", line

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
ile "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 839, in exec_module File "", line 976, in get_code File "", line 906, in source_to_code File &