Re: How to create a app inside a app

2012-07-21 Thread Russell Keith-Magee
On Sat, Jul 21, 2012 at 8:46 PM, Melvyn Sopacua wrote: > On 21-7-2012 3:26, Russell Keith-Magee wrote: >> On Sat, Jul 21, 2012 at 3:32 AM, Nicolas Ardison >> wrote: >>> Hello, i was reading the Django documentation, and i have the following >>> trouble that i'm not sure if django can solve it. I

Re: sqlite to mysql loaddata not working (using natural keys)

2012-07-21 Thread Karen Tracey
On Fri, Jul 20, 2012 at 2:57 PM, dack wrote: > I'm trying to move django data from an sqlite database to a mysql > database. I know I need to use natural keys, but it's still failing. Any > ideas? > > Here's my procedure. The default database is sqlite, the mysql database is > called "mysql" in s

Re: Extending a app with other app

2012-07-21 Thread Karen Tracey
On Fri, Jul 20, 2012 at 1:58 PM, Nicolas Ardison wrote: > Does anybody knows how to create a "app" inside a "app"? This request is unclear, perhaps if you put a few more words around this describing what you actually want to do someone could help. It doesn't make any sense in Django to say you w

Re: How to present a calculated field in a admin edit form.

2012-07-21 Thread Karen Tracey
On Mon, Jul 16, 2012 at 3:45 AM, Erlend Dalen wrote: > I'm using Django 1.0 (beta_1) and have the following issue: > I have a method in a model that returns a calculated value and I would > like this value to be displayed in the admin edit form related to that view. > I have no problem showing the

Re: Newbie -- issue with psycoppg2

2012-07-21 Thread Thomas Lockhart
On 12-07-21 3:57 AM, Quincy Kwende wrote: create a database using PostgreSQL Try googling "create a database using PostgreSQL" The first hit is the chapter you want in the Postgres docs. hth - Tom -- You received this message because you are subscribed to the Google Groups "Dj

can_add TabularInline ?

2012-07-21 Thread Nicolas Emiliani
Hi, so.. I have a TabularInline admin view that displays '+ Add another' and I would like to remove it, like can_delete = False but for the add option. sadly can_add doesn't exist, so how do I achieve this ? Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo.

Getting an error: FATAL: Peer authentication failed for user "test"

2012-07-21 Thread Sylar
Hello everyone- So I'm completely new to Django and I'm using this tutorial: http://www.programmersbook.com/page/21/Django-Beginner-Tutorial-Part-I/. For the past two days I have the exact same error(stuck at step 7.): sudo python manage.py syncdb Traceback (most recent call last): File "manag

Error:psycopg2.OperationalError: FATAL: Peer authentication failed for user "test"

2012-07-21 Thread Juraj Malenica
Hello- So, I'm a total newbie in Django, and I'm using this tutorial: http://www.programmersbook.com/page/21/Django-Beginner-Tutorial-Part-I/. I got stuck at the 7.th step. My error is this(I'm a xubuntu user): Traceback (most recent call last): File "manage.py", line 10, in execute_from_

Newbie -- issue with psycoppg2

2012-07-21 Thread Quincy Kwende
Hello, I get the bug on the attached file. I don't know how to create a database using PostgreSQL. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/os96R

Using PostgreSQL

2012-07-21 Thread Quincy Kwende
Hello, I just install Python, Django and psycopg2 on Windows and I am trying to do the tutorials on the official documentation. How do I create a database or how do I switch to the database's interactive prompt ? I have been using git bash to install some features and start the server. -- You

Re: Pip type error.

2012-07-21 Thread Jauharul Fuady
On Sunday, 11 March 2012 15:17:59 UTC+7, John W. wrote: > > I know it's weird to reply to myself, but just in case that somebody has > the same problem. > > It seems that the problem it is in the requirements.txt, i created it > using powershell and "pip.exe freeze > requirements.txt" command,

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-21 Thread Javi Romero
I'm in :D El sábado, 30 de junio de 2012 17:10:27 UTC+2, Cal Leeming [Simplicity Media Ltd] escribió: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data processin

Re: Set two fields to the same value

2012-07-21 Thread Melvyn Sopacua
On 12-7-2012 15:51, Jaroslav Dobrek wrote: > Users may create Test objects in order to run their own tests. A test > always starts at some date time and it always ends at some date time. Each > test has a time which is increased until it equals the end time. When a > user creates a new test (an

Re: How to create a app inside a app

2012-07-21 Thread Melvyn Sopacua
On 21-7-2012 3:26, Russell Keith-Magee wrote: > On Sat, Jul 21, 2012 at 3:32 AM, Nicolas Ardison > wrote: >> Hello, i was reading the Django documentation, and i have the following >> trouble that i'm not sure if django can solve it. I have a application >> called "userArea" and i want to extend

Re: Passing a dict to default page_not_found view

2012-07-21 Thread Russell Keith-Magee
On Sat, Jul 21, 2012 at 7:44 PM, Masud Khokhar wrote: > Hi Russell, > > Many thanks for your reply. The template tag approach looks good and I will > try to use this one. > > One further question. If I am using the @register.simple_tag decorator, can > I create the view in the views.py file or do

Re: Passing a dict to default page_not_found view

2012-07-21 Thread Masud Khokhar
Hi Russell, Many thanks for your reply. The template tag approach looks good and I will try to use this one. One further question. If I am using the @register.simple_tag decorator, can I create the view in the views.py file or do I have to create a templatetags directory and follow the full proce

Re: Validation error with formwizard and formset

2012-07-21 Thread Rob
The validation error i got was due to a custom view i wrote, and had nothing todo my my template etc etc. I switched back to the default example view provided by the Django site, and everything works. -- You received this message because you are subscribed to the Google Groups "Django users" g

Validation error with formwizard and formset

2012-07-21 Thread Rob
I have a basic formwizard example from the Django 1.4 documentation: https://docs.djangoproject.com/en/1.4/ref/contrib/formtools/form-wizard/ When I replace the forms with a modelform and a formset i keep getting validation errors: (ManagementForm data is missing or has been tampered with) The

Child-friendly blogging app

2012-07-21 Thread Lie Ryan
Hi, I'm creating a website that allows registered users (which are not is_staff) to write journals (text, images, sound, video, and uploaded files), and write comments to other's journals. The journals and comments have to be moderated by a different class of users (the moderators) before they

Re: Passing a dict to default page_not_found view

2012-07-21 Thread Russell Keith-Magee
On Sat, Jul 21, 2012 at 10:09 AM, Masud Khokhar wrote: > Hi all, > > I am using the default 404 view that Django uses. I have created a custom > 404.html page in my templates directory which automatically gets loaded. Is > it possible for this page to load a python dictionary or do I need to rai