Re: Bus Error on Development Server

2014-03-01 Thread Gkpetrak
Hello, thank you for your quick replies. I tried to start the development server with the GNU debugger gdb to check the error and I had the following output: Starting program: /home/george/venv/bin/python Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2 Try: zypper install -C

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan D. Baker
Instead of hard-coding paths, check out os.path, os.abspath and os.sep (and the rest of the os module) for such needs. I usually declare a PROJECT_ROOT var at the top of my settings.py using the aforementioned os module, and then hang paths (like your db path) off of that instead of building

Re: Trouble with Django in production server.

2014-03-01 Thread Omar Acevedo
To see if it worked, and yes it did! So, I'm just having trouble with the paths. I'm using a virtual environment. So I guess I'll have to deal with the paths. Thank you a lot anyways!!! :) On Sat, Mar 1, 2014 at 8:39 PM, Omar Acevedo wrote: > I explicitly wrote

Re: Trouble with Django in production server.

2014-03-01 Thread Omar Acevedo
I explicitly wrote '/home/catacafe/.env/env/lib/python2.7/db.sqlite3' in the NAME option of the DATABASES dictionary. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Trouble with Django in production server.

2014-03-01 Thread Omar Acevedo
While trying and trying different stuff, turned out to be a bad path configuration with the NAME inside the DATABASES dictionary within the settings.py file. On Sat, Mar 1, 2014 at 8:34 PM, Jonathan Baker wrote: > Are you using multiple settings files, for

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan Baker
Are you using multiple settings files, for example: dev.py, pro.py, etc.? Are you sure that the settings file you're using is configured to use the database on your production server? On Sat, Mar 1, 2014 at 5:12 PM, Omar Acevedo wrote: > Yes! > > > On Sat, Mar 1, 2014 at 8:11

Re: Trouble with Django in production server.

2014-03-01 Thread Omar Acevedo
Yes! On Sat, Mar 1, 2014 at 8:11 PM, Jonathan Baker wrote: > When you ran the 'syncdb' management command, was 'auth_user' listed in > the output as a table that was created? > > > On Sat, Mar 1, 2014 at 3:52 PM, Omar Acevedo wrote: > >> Hello

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan Baker
When you ran the 'syncdb' management command, was 'auth_user' listed in the output as a table that was created? On Sat, Mar 1, 2014 at 3:52 PM, Omar Acevedo wrote: > Hello people, I'm having an issue in/with Django, which is on a shared > hosting, and I'm using virtualenv and

Re: memcached and redis

2014-03-01 Thread Andy McKay
On Sat, Mar 1, 2014 at 12:39 PM, Andreas Kuhne wrote: > The main difference is that you can use redis as a session cache for > django (save the session objects to memory instead of the database), which > I haven't found a solution for memcache yet. > Memcache works

Using inlines on a one to many but not seeing "add another" link

2014-03-01 Thread Dennis Marwood
Hello. Here are my models and admin.py dpaste.de And here is the what I am referring to https://docs.djangoproject.com/en/1.6/intro/tutorial02/#customize-the-admin-form But I my not seeing the link to add another. Thanks -- You received this message because you are

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2014-03-01 Thread benjaoming
I've run into this issue twice... both times I spent hours and finally found the error and was in tears... especially the second time I did it :) I've made custom view handlers in urls.py like these: handler500 = 'myproject.views.server_error' handler404 = 'myproject.views.page_not_found'

Re: memcached and redis

2014-03-01 Thread Russell Keith-Magee
On Sun, Mar 2, 2014 at 4:39 AM, Andreas Kuhne wrote: > Ok, > > Redis and Memcache really solve the same problems. > Erm... no, they don't. They are both in-memory stores, but that's where the similarities ends. Memcache is a simple in-memory cache, and that's it.

Trouble with Django in production server.

2014-03-01 Thread Omar Acevedo
Hello people, I'm having an issue in/with Django, which is on a shared hosting, and I'm using virtualenv and fastcgi. (<- saying this, just in case it helps in something) I'm getting "OperationalError at /admin/ no such table: auth_user" after entering my credentials (username & pw) set when

Re: django and amazon web services

2014-03-01 Thread CLIFFORD ILKAY
On 03/01/2014 11:21 AM, Robin Lery wrote: > Very nicely explained! I was actually hoping to use Amazon RDS with > postgresql. Your help was very useful. Thank you! There is another issue if your application has to deal with user uploaded files, such as photos, PDFs, etc. You must consider the

"No such table" error.

2014-03-01 Thread Omar Acevedo
Hello, I'm having an issue in/with Django, which is on a shared hosting, and I'm using virtualenv and fastcgi. (<- saying this, just in case it helps in something) I'm getting "OperationalError at /admin/ no such table: auth_user" after entering my credentials (username & pw) that were set

Re: memcached and redis

2014-03-01 Thread Robin Lery
Ok, I think I get it now. Thank you so much! Just one more question though, does redis has feature similar to *getidentifiable()* and *putifuntouched() *like memcache, I think these are for consistency? On Sun, Mar 2, 2014 at 2:09 AM, Andreas Kuhne wrote: > Ok, > >

Re: memcached and redis

2014-03-01 Thread Andreas Kuhne
Ok, Redis and Memcache really solve the same problems. The main difference is that you can use redis as a session cache for django (save the session objects to memory instead of the database), which I haven't found a solution for memcache yet. Also redis CAN be persisted (saved to disk), if you

Re: memcached and redis

2014-03-01 Thread Robin Lery
Use cases with memcached and redis please. On Sun, Mar 2, 2014 at 1:45 AM, Andreas Kuhne wrote: > Hi again, > > Do you mean use cases with redis and memcache or with S3? > > Regards, > > Andréas > > 2014-03-01 21:00 GMT+01:00 Robin Lery : > >>

Re: memcached and redis

2014-03-01 Thread Robin Lery
Hello, Thank you for your answer. Would you please elaborate a little more about the use cases with these? And can I use them together? Thank you. On Sun, Mar 2, 2014 at 1:01 AM, Andreas Kuhne wrote: > Hi, > > In response to your question about memcache and redis,

Re: memcached and redis

2014-03-01 Thread Andreas Kuhne
Hi, In response to your question about memcache and redis, they are extremely useful, if you use them correctly. For example if you are generating a query to your database that takes 1 second to finish, and you cache the results in memcache or redis, then you would be able to get the second

memcached and redis

2014-03-01 Thread Robin Lery
Hello, Another noob question. Please bear with me. I am really very confused between memcached and redis. I know they both are used for caching. But I don't know how much does they help. And lastly, I would like know what would you use for a site with users uploaded pictures and videos too? I hope

Re: django and amazon web services

2014-03-01 Thread Robin Lery
Very nicely explained! I was actually hoping to use Amazon RDS with postgresql. Your help was very useful. Thank you! On Sat, Mar 1, 2014 at 3:03 PM, Russell Keith-Magee wrote: > Hi Robin, > > In the simplest deployment case, your entire Django (or, for that matter,

Re: How to detect clear checkbox chequed on ClearableFileInput

2014-03-01 Thread Héctor Urbina
Hello, I ended with this code: if insumoForm.is_valid() and not insumoForm.cleaned_data["DELETE"]: insumoRecurso = insumoForm.save(commit=False) if not insumoRecurso.archivo.name: continue insumoRecurso.recurso = recurso

Is there a complete pinax-based or similar starter project available?

2014-03-01 Thread Thomas Weholt
Is there a complete pinax-based (with all the pinax apps installed including templates) or similar starter project available? I'm looking for a starter project with social features similar to facebook and the pinaxproject is the closest I've come so far. Is pinax still in development? What is the

Re: Bus Error on Development Server

2014-03-01 Thread François Schiettecatte
Looks like you have a bad disc drive too, sda is throwing IO errors. François On Feb 28, 2014, at 10:03 PM, Thomas Lockhart wrote: > On 2/28/14 6:16 PM, Gkpetrak wrote: >> Hello, >> >> I was trying to process Images with some python scripts, when I receive bus >>

Re: Template/Form Errors and DynaTree.js

2014-03-01 Thread Timothy W. Cook
Still not there yet. There is something I am not understanding about capturing the response back from the server. It still opens the template as an HTML page and not inside the div. Is it possibly how I am using the HTTPResponse? Since I am not modifying it at all. *View:* class

Re: django and amazon web services

2014-03-01 Thread Russell Keith-Magee
Hi Robin, In the simplest deployment case, your entire Django (or, for that matter, any other framework) website will run on a single server. That single server will contain the web server, the database, any files that have been uploaded, any any other services your site needs (such as memcache,

django and amazon web services

2014-03-01 Thread Robin Lery
Hello. I have a very basic noob question, which I don't know. Please help me understand this concepts. When I use *ec2* for my application web server, and if I use the services like *autoscale *and *elastic load balancer*, do I always have to sync the database with the new *ec2* instances that are