Django 1.7 tutorial: python manage.py migrate errors.

2014-11-20 Thread Alvin Panugayan
I'm following the django tutorial online and I'm stuck on the migrate bit (bottom of the post). 1. Do I need to install south ? Tried to install but am getting a similar error. OpenKey() argument... 2. Do I need to install sqlite3 separately ? Running import sqlite inside the python prompt see

Re: Question on a resembling function on truncatewords

2014-04-13 Thread Alvin Lindstam
And also: 1) You have misspelled description in the shorten_words method. In you model field definition, and in your length check it's "description" but in the print/return statements it's spelled "desciption". 2) The python slicing operator is clever enough to handle indexes that are out of b

Re: database design problem.

2014-03-15 Thread Alvin Lindstam
Actually, the Django term for this is "through". Not via. See https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-many-to-many-relationships on how to specify the intermediate table to be used in many-to-many relationships. Den lördagen den 15:e mars 2014 kl. 18:01:02 UTC

Re: Pandas in Django

2014-03-08 Thread Alvin Lindstam
Hello Judy. You could increase the likelihood of a helpful response: -Provide more of the code, such as relevant imports. -Provide the full error report when you get an exception (copy-pasted). -Use the correct channel. It seems that you are using the pandas library and the code you included

Massive memory leak -- seeking help

2011-11-25 Thread Alvin Mites
I have a Satchmo deployment w/ 500k products running on - Apache 2.2-mpm-prefork - mysql 5.1 - mod_wsgi 3.3 - mysqldb 1.2.3 Technology stacks asside (going to migrate to nginx / gunicorn / etc... over time) this site has one hell of a memory leak the server itself is running with 16GB of memo

Dynamically setting readonly_fields in admin - logic error?

2010-04-30 Thread Alvin
I am attempting to create a printable version of several models from the admin, seeing that Django 1.2 has included readonly_fields I decided to try and experiment by setting them dynamically trick is when I include the following logic it comes back passing the if statement regardless of what/if G

Re: Django Is telling me table already exists on syncdb - can’t figure out why

2009-08-16 Thread Alvin
django-mptt was the culprit renamed table for memorial_music to memorial_music_library and everything went smooth thank you django for manage.py sqlall memorial On Aug 16, 4:43 am, Alvin wrote: > Posted the model athttp://pastebin.com/f609771cc > > getting error: (yes it's wi

Re: Django Is telling me table already exists on syncdb - can’t figure out why

2009-08-16 Thread Alvin
forgot to mention: before running syncdb I delete all memorial_ tables... hoping someone can offer some advice on this one On Aug 16, 4:43 am, Alvin wrote: > Posted the model athttp://pastebin.com/f609771cc > > getting error: (yes it's windows) File "C:\Python25\lib\site-

Django Is telling me table already exists on syncdb - can’t figure out why

2009-08-16 Thread Alvin
Posted the model at http://pastebin.com/f609771cc getting error: (yes it's windows) File "C:\Python25\lib\site-packages \MySQLdb\connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue _mysql_exceptions.OperationalError: (1050, "Table 'memorial_music' already exists") scann

Re: File Upload : Memory consumption

2009-07-17 Thread Alvin
has anyone had luck getting past this? I am using a recent 1.1 beta release have checked the folder permissions and set the FILE_UPLOAD_TEMP_DIR all 777 code is at http://pastebin.com/m4332fdb2 On Jun 24, 2:06 pm, alecs wrote: > If to be honest I can't google this posts ... Most of the links a

Re: serving a static file via nginx requiring authentication from django

2009-07-01 Thread Alvin
I'll be writing a blog post about this soon when John wrote is right on though it took me a while to wrap my mind around it the nginx location + nginx alias + url passed = file to be served so to get file /home/me/web/example.com/download/file.pdf location ^~ /download {

Seeking Developer to Continue Project

2009-04-13 Thread Alvin
;t need to handle this part), among others. Development will be ongoing for a little while, and I am looking to have someone get started very quickly. For more details please send an email to django [at] mitesdesign.com Thank you, Alvin --~--~-~--~~~---~--~~ You rec

Re: Looping through my POST data?

2007-07-29 Thread Alvin
That is what programming language? Note you can name what? Thanks ! --~--~-~--~~~---~--~~ 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 To unsubsc

Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Alvin
Who may help me to design a software? I want an account number, the password producer (because I do not have means to think of quite good account number password) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja