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
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"
&
. 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
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
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
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
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
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
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:
&
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
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
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
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
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
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
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
--~--~-~--~~~
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
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."
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
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
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
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']
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
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
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 &
25 matches
Mail list logo