What is the best method to load a page?

2010-01-19 Thread NMarcu
Hello all, What is the best method to load a page. This page to be build from a template. The template to have a table, with data from db? The data from db, are from more then one object. So I'm interested how can I build the template, with data from one or more objects(ob.objects.all ()). --

#django :You need to be identified to join that channel

2010-01-16 Thread NMarcu
Hello, Somebody know why i get this message when I try to join django channel from freenode irc: #django :You need to be identified to join that channel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Page load very slow, in Django site

2010-01-06 Thread NMarcu
Hello all, My page is loading very slow, more then 5 sec per page. I'm using apache2. How can I see what is the problem, or what can be the reason? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: jquery, keyup event on a text input

2010-01-04 Thread NMarcu
I found the problem...thread closed On Jan 4, 12:18 pm, NMarcu wrote: > Hello, > I have this: > > value="Controller 1"/> > > and the script: > >           >                 $(document).ready(function() { >                     $("#device_name"

jquery, keyup event on a text input

2010-01-04 Thread NMarcu
Hello, I have this: and the script: $(document).ready(function() { $("#device_name").keyup(function() { alert("Something"); }); }); ...what I do wrong, because never do the a

How to check the validity of a field(unique property) from template?

2010-01-04 Thread NMarcu
Hello all, I want to check the fields from web interface before those to be added in db. If one field already exist to get a message like: "Already exist". I want to not perform the add action, if all fields are not validated. -- You received this message because you are subscribed to the Go

You are already login...I want to get this message when a user is already login to my site(two different location)

2009-12-28 Thread NMarcu
Hello all, I want to let only one same user to be login in the same time. If I connect from Paris with admin, and other user try to connect with admin from other location, to get a message like it is already connected. How can I do something like this? -- You received this message because you

Operate with Postgresql from Django views.

2009-12-21 Thread NMarcu
Hello, I have a problem, or I don't know how is working. I want to do an operation to a table, on Postgresql database. By example: I want to add new data in a table. I do it like this: ob_device = Device(id=device_address) ob_device.save() Everything is OK, if the view is finished, bu

Django editor for Debian

2009-12-15 Thread NMarcu
Hello all, Can you tell me a good Django editor for Debian? Something more pretty then default text editor. Something to can edit templates also. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Django authentication, not permit 2 users with the same name to login in same time

2009-12-14 Thread NMarcu
Hi all, How can I do, to not let the same user to be logged from 2 different location, in the same time. I want, when a user admin is login, and another user try to login with the same user admin, to have a message, you are already login. How can I do something like this? All the best, Nicu Ma

Re: Need help on jquery Ajax load(use load two times)

2009-12-04 Thread NMarcu
alert from the first template Why is this order? On Dec 4, 11:52 am, NMarcu wrote: > Hello all, > >     I have a strange problem with jquery load. I have this two loads > on a click event: > > action='first'; > $( '#operators_list_div' ).html( ' ' )

Need help on jquery Ajax load(use load two times)

2009-12-04 Thread NMarcu
Hello all, I have a strange problem with jquery load. I have this two loads on a click event: action='first'; $( '#operators_list_div' ).html( ' ' ).load( '{% url add_save_view %}',{'action':action, }); action='second'; $( '#address_list' ).html( ' ' ).load( '{% url add_save_view %}', {'actio

Ajax with jquery, 2 load in the same event, work not OK on apache2 server...strange because work ok with runserver, on localhost

2009-11-27 Thread NMarcu
Hello all, I have something like this: $( '#operators_list_div' ).html( ' ' ).load( '{% url add_save_view %}',{'action':'action',}); $( '#address_list' ).html( ' ' ).load( '{% url add_save_view %}', {'action':'address_list',}); In view I have like this, that don't work on: #list of availibl

How to use French accent on django template?

2009-11-12 Thread NMarcu
Hello all, How to use French accent on django template? It's very strange. in one template is working very well, but in other(templatetag) not, I got this error: TemplateSyntaxError at /operators/ajax Caught an exception while rendering: 'ascii' codec can't encode character u'\xe9' in positio

Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread NMarcu
Hello all, I have a section for adding new user, on auth_user table (default django auth method), and work just fine. I added a trigger on that event, to add something in a new table and my app crashed. I got this error: InternalError at /operators/ current transaction is aborted, commands i

Django internationalization problem: Error: errors happened while running xgettext on __init__.py /bin/sh: xgettext: command not found

2009-11-09 Thread NMarcu
Hello all, When I run django-admin.py makemessages -l ro I got this: Error: errors happened while running xgettext on __init__.py /bin/sh: xgettext: command not found You know why, I need to install somethng else? --~--~-~--~~~---~--~~ You received this message

How can I change the verbose_name of a field and save this in model, or db, from a view?

2009-11-09 Thread NMarcu
Hello, I want to change the verbose_name to is_superuser, on User class. The current one is superuser status, and I want to make this field editable, and I need to change this verbose_name from view, how can I do this? --~--~-~--~~~---~--~~ You received this mes

User class, change name of fields(like username with login name)

2009-11-09 Thread NMarcu
Hello all, I have a list of all users. My head table is made with the fields from User class. So look like this: username first name last name superuser status I want to make this head table editable. How can I change the caption of the field, not the name of it. By ex:

uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-04 Thread NMarcu
Hello all, I got an error, and I don't know how to pass on it. I got this error when I try to use ajax from django templates. I use this, from jquery: $('#create-user').click(function() { $( '#test_div' ).load( "{% url test_ajax %}"); }); I have this button: Add a new

Django templates, break a for after an if

2009-10-26 Thread NMarcu
Hello all, I want to do something like this: {% for u in users %} {% for su in superu %} {% ifequal u su %} //do something end exit from this for {% endifequal %} {% endfor %} {% endfor %} How can I do

Problem moving project on other PC. No module found.

2009-10-01 Thread NMarcu
Hello, I made a project in Django, and runs grate on my PC. I have all my files in a folder: "project". I copied to anoter PC via ssh, and on that pc I configurate apache, and acces is from my browser via http, but sometimes I got: "Could not import project.operators.views. Error was: No module

Send a parameter from a template to another template

2009-09-30 Thread NMarcu
Hello, I need to send a value from a template to another template. In my first template I have something like this: td>Edit The result will be: "/edit/admin" I need to use the value: "admin" in another template. I have in my urls.py: url(r'^operators/edit/(?P\w+)', 'views.edit'), My views.e

phppgadmin not work if I have a project runing directly like: localhost/

2009-09-02 Thread NMarcu
program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE ibox.settings PythonOption django.root /ibox PythonDebug On PythonPath "['/home/nmarcu/Desktop/projects'] + sys.path" There is a posibility to run the proj

Access to postgresql with Django, in Apache server not work, but in Django server work(pyton manage.py ruserver)

2009-09-01 Thread NMarcu
Hello all, I'm very new in python, Django... I have a Django project. If I run it like: python manage.py runserver, everything is OK. When I run it in Apache2 I got this error: OperationalError at /login FATAL: Ident authentication failed for user "nmarcu" How can be th