who owns djangocon.blip.tv?

2009-09-14 Thread Carl Karsten
http://djangocon.blip.tv/ has no posts, and no contact info. Anyone know who's it is? seems like a good place to put the djangocon videos. http://django.blip.tv/ is taken too, with some odd test vids. Maybe http://ponycon.blip.tv/ ? -- Carl K --~--~-~--~~~---~--~

blankiing an ImageField

2008-05-25 Thread Carl Karsten
In the admin UI, is there any way to blank out a foo = model.ImageField(...) ? Carl K --~--~-~--~~~---~--~~ 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@googlegr

"intro to django" script -

2008-06-09 Thread Carl Karsten
I want to make a http://showmedo.com "Getting started with Django" I expect it to be about 5 min long. The goal is not show someone how to be productive, but how easy it is to get started. At most 1 min on install python, install django, make sure you can do python -c "import django" without

Re: blankiing an ImageField

2008-06-21 Thread Carl Karsten
Amit Ramon wrote: > * Carl Karsten <[EMAIL PROTECTED]> [2008-05-25 17:25 -0500]: >> In the admin UI, is there any way to blank out a foo = >> model.ImageField(...) ? >> >> Carl K > > > foo = model.ImageFields(..., editable=False) > No. (unless

extending flatpages

2008-07-03 Thread Carl Karsten
I need to add some fields to flatpage model. (like header image) is there a clean way to do this? I saw it come up before, and one comment was "model subclassing is not supported." So now that it is supported... I am going to learn that it wont help me with this problem? Carl K --~--~--

Re: offline population of django auth user table

2009-05-02 Thread Carl Karsten
On Sat, May 2, 2009 at 11:09 AM, Jeff wrote: > > I'm using Django's authentication.  I would like to add several users > through a command-line script (not through code executed via the > website).  Something like manage.py createsuperuser but for normal > users and not interactive.  I want to be

named admin url w filter

2010-09-16 Thread Carl Karsten
Is there a better way to do: {% url admin:main_episode_changelist %}?show__id__exact={{show.id}} I tried: {% url admin:main_episode_changelist show__id__exact=show.id %} Caught NoReverseMatch while rendering: Reverse for 'main_episode_changelist' with arguments '()' and keyword arguments '{'show_

postgresql create db script

2008-01-18 Thread Carl Karsten
I am trying to write a shell script that do whatever needs to be done between sudo apt-get install postgresql python-psycopg and manage.py syncdb for MySql, I use this to generate somehting I can pipe into the CLI: print """ DROP DATABASE IF EXISTS %(db)s; CREATE DATABASE %(db)s; GRANT ALL

differences between runserver and apache

2008-01-20 Thread Carl Karsten
I developed a site using ./mmanage.py runserver for testing. I try to run it under apache and it errors. I hear runserver adds things to sys.path (installed apps) and when you run from apache that doesn't happen. sure enough, I can fix it by adding things to PythonPath. Now I am having 2 p

Re: differences between runserver and apache

2008-01-21 Thread Carl Karsten
home/testrmcom/django/core/urlresolvers.py" in _get_callback 184. raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) Exception Type: ViewDoesNotExist at /admin/ Exception Value: Tried new_message in module ridgemoor

Re: differences between runserver and apache

2008-01-21 Thread Carl Karsten
James Bennett wrote: > On Jan 21, 2008 8:43 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Exception Type: ViewDoesNotExist at /admin/ >> Exception Value: Tried new_message in module ridgemoor.core.views. Error was: >> 'module' object has no attribute &

Re: differences between runserver and apache

2008-01-21 Thread Carl Karsten
= ( > "/home/webs/djtsw/django_templates" > # Put strings here, like "/home/html/django_templates" or "C:/www/ > django/templates". > # Always use forward slashes, even on Windows. > # Don't forget to use absolute paths, not relative p

Re: differences between runserver and apache

2008-01-21 Thread Carl Karsten
sys.path" > > Because you are declaring DJANGO_SETTINGS_MODULE as: > > SetEnv DJANGO_SETTINGS_MODULE ridgemoor.settings > > then the parent directory of 'ridgemoor' must be added to PythonPath. > > PythonPath "['/home/testrmcom/django-

Re: differences between runserver and apache

2008-01-21 Thread Carl Karsten
Carl Karsten wrote: > symlinks. I use them. I bet the default is for Apache not to follow them. > that > could be my problem. or at least one of them. > > That is enough to start a wiki page. > > I am going to divide it into rumors and confirmed rumors. Anyone have

Accessor clashes related field

2008-01-22 Thread Carl Karsten
# core/models.py from django.db import models from django.contrib.auth.models import User import ridgemoor.msg.models from time import strftime class Message(models.Model): to = models.ForeignKey(User, related_name = "messages_received") sender = models.ForeignKey(User, related_name =

Re: differences between runserver and apache

2008-01-22 Thread Carl Karsten
ck then, so not sure why you are > having trouble now. ;-) > > Graham > > On Jan 22, 6:51 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: >> On Jan 22, 6:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> >>> Carl Karsten wrote: >>>

Re: differences between runserver and apache

2008-01-22 Thread Carl Karsten
Graham Dumpleton wrote: > On Jan 22, 6:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Carl Karsten wrote: >>> symlinks. I use them. I bet the default is for Apache not to follow them. >>> that >>> could be my problem. or at least one of them. >

Re: Accessor clashes related field

2008-01-22 Thread Carl Karsten
Karen Tracey wrote: > On Jan 22, 2008 3:00 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: > >> # core/models.py >> from django.db import models >> from django.contrib.auth.models import User >> import ridgemoor.msg.models >> from time import strftime &g

why did admin delete my data?

2008-01-30 Thread Carl Karsten
I did this: http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ wrote a data migration.py to convert data. I browse to the django admin ui, and I can see the data. if I edit it, or not edit it, then hit Save, it deletes the User Profile record. I hit history, and i

Re: why did admin delete my data?

2008-01-30 Thread Carl Karsten
James Bennett wrote: > On Jan 30, 2008 2:22 PM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> title = models.CharField("Title", core=True, max_length=80, blank=True, >> null=True) >> surname = models.CharField("Surname", max_length=65, core=T

keep children from running away

2008-01-30 Thread Carl Karsten
OK, I think my data is going away because of my choice of blank and core. Ideally, I don't care if the record stays around even if it is 100% blank. either way, this is the only case I want it deleted. If there is any data in it, I do not want to loose it. but the way I have it currently the

form for display, not edit

2008-01-31 Thread Carl Karsten
newforms is great for creating forms. I need something similar to generate a display form from a model. I looked at subclassing form, but what I would need to override is in the widgets. which is probably why my hope isn't a good one. but for what I need, I only am using char fields, so I d

Re: form for display, not edit

2008-01-31 Thread Carl Karsten
[EMAIL PROTECTED] wrote: > Using SVN you could SVN use modelforms, on .96 use the form_for > helpers. but modelforms still puts everything in tags, right? Carl K > > On Jan 31, 6:34 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> newforms is great for creating forms.

allow user to update his record

2008-01-31 Thread Carl Karsten
Is there a built in way for users to update their own user record? I currently have a page that displays user data to any other user. I was hoping to re-use that for allowing a user to edit his own. If it matters, I am useing a user_profile as described: http://www.b-list.org/weblog/2006/jun/

Re: allow user to update his record

2008-02-01 Thread Carl Karsten
Carl Karsten wrote: > Is there a built in way for users to update their own user record? > > I currently have a page that displays user data to any other user. I was > hoping > to re-use that for allowing a user to edit his own. > > If it matters, I am useing a user

Re: allow user to update his record

2008-02-02 Thread Carl Karsten
Carl Karsten wrote: > Carl Karsten wrote: >> Is there a built in way for users to update their own user record? >> >> I currently have a page that displays user data to any other user. I was >> hoping >> to re-use that for allowing a user to edit his own. &

"duplicate key" loading dumpdata

2008-03-26 Thread Carl Karsten
same code on both boxes: [EMAIL PROTECTED]:~/ridgemoor$ ../django/bin/django-admin.py dumpdata >ridgemoor.json [EMAIL PROTECTED]:~/ridgemoor$ django-admin.py loaddata ridgemoor.json Installing json fixture 'ridgemoor' from absolute path. Problem installing fixture 'ridgemoor.json': ERROR: dup

Re: [Django Code] #7101: ordering ForeignKey(self) =FieldError: Infinite loop caused by ordering.

2008-04-27 Thread Carl Karsten
Django Code wrote: > #7101: ordering ForeignKey(self) =FieldError: Infinite loop caused by > ordering. > -+-- > Reporter: Carl Karsten <[EMAIL PROTECTED]> |Owner: > nobody

Re: [Django Code] #7101: ordering ForeignKey(self) =FieldError: Infinite loop caused by ordering.

2008-04-27 Thread Carl Karsten
Malcolm Tredinnick wrote: > > On Sun, 2008-04-27 at 23:19 -0500, Carl Karsten wrote: > [...] >> order_by('parent_id') doesn't do anything for the Admin UI, which is where I >> 'need' this. > > I made a typo. It should be 'parent__id

loaddata .. columns app_label, model are not unique

2008-05-13 Thread Carl Karsten
[EMAIL PROTECTED]:~/dev/sites/ridgemoor$ ./manage.py loaddata rm.json Installing json fixture 'rm' from absolute path. Problem installing fixture 'rm.json': columns app_label, model are not unique How do I debug this? Carl K --~--~-~--~~~---~--~~ You received thi

Re: loaddata .. columns app_label, model are not unique

2008-05-13 Thread Carl Karsten
Russell Keith-Magee wrote: > On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED]:~/dev/sites/ridgemoor$ ./manage.py loaddata rm.json >> Installing json fixture 'rm' from absolute path. >> Problem installing fixtur

Re: loaddata .. columns app_label, model are not unique

2008-05-15 Thread Carl Karsten
Russell Keith-Magee wrote: > On Wed, May 14, 2008 at 1:20 PM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Russell Keith-Magee wrote: >>> On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> What are the chances of getting a dumpdata hack t

Re: MySQL Boolean vs. PostgresQL Boolean

2008-05-15 Thread Carl Karsten
Szaijan wrote: > Hi, I developed my first Django app on my mapbook using PostgreSQL and > have recently moved it to a production site which uses MySQL. > PostgreSQL stores boolean values and True and False, just like Python > and JS, while MySQL uses 1 and 0. Where are you seeing this? I think y

Re: loaddata .. columns app_label, model are not unique

2008-05-15 Thread Carl Karsten
Carl Karsten wrote: > Russell Keith-Magee wrote: >> On Wed, May 14, 2008 at 1:20 PM, Carl Karsten <[EMAIL PROTECTED]> wrote: >>> Russell Keith-Magee wrote: >>>> On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >>> What ar

Re: loaddata .. columns app_label, model are not unique

2008-05-15 Thread Carl Karsten
Just saving someone the trouble of telling me to spell multiple correctly. > make_option('-e', '--exclude', dest='exclude', action='append', > help='App to exclude (use mutiple --exclude to exclude mutiple apps).'), help='App to exclude (use multiple --exclude to exclude multiple apps).'),

Re: loaddata .. columns app_label, model are not unique

2008-05-15 Thread Carl Karsten
Russell Keith-Magee wrote: > On Fri, May 16, 2008 at 3:47 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Russell Keith-Magee wrote: >>> On Wed, May 14, 2008 at 1:20 PM, Carl Karsten <[EMAIL PROTECTED]> wrote: >>>> Russell Keith-Magee wrote: >>&

Re: loaddata .. columns app_label, model are not unique

2008-05-15 Thread Carl Karsten
Russell Keith-Magee wrote: > On Fri, May 16, 2008 at 8:13 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Russell Keith-Magee wrote: > >>>> 2. should I leave in --debug? I really meant it for debugging, but I can >>>> see it >>>> being handy

Re: loaddata .. columns app_label, model are not unique

2008-05-17 Thread Carl Karsten
patch submitted: http://code.djangoproject.com/ticket/7254 Carl K --~--~-~--~~~---~--~~ 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 unsubscr

Re: sleep for 30 minutes?

2007-06-10 Thread Carl Karsten
MartinWinkler wrote: > Hi again, > > On Jun 10, 10:37 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > >> Why don't you display the image dynamically with django, without >> saving it? >> Example:http://django-captcha.googlecode.com/svn/trunk/djaptcha/views.py > > I already took a look at dja

inspectdb and mssql

2007-06-11 Thread Carl Karsten
If I were starting from scratch, I would use MySql. But currently there is a db model in MsSql. the 2 affections to mssql is 1: it is what the client has (so I don't have to sell them on anyting new) and 2) it is where the model currently is. The plan is to see how far I can get with Ms,

Re: inspectdb and mssql

2007-06-11 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Tue, 2007-06-12 at 06:14 +1000, Malcolm Tredinnick wrote: >> On Mon, 2007-06-11 at 15:07 -0500, Carl Karsten wrote: >>> If I were starting from scratch, I would use MySql. But currently there is >>> a db >>> model in MsSql. t

Re: [django] Re: Including [django-users] in subject line?

2007-06-11 Thread Carl Karsten
> As I said abive, when I've done that in the past I never find the time > to dig into all my folders. If I'm going to monitor a list, it needs > to go through my inbox and have me take a manual action to move it to > a folder. I think this is the root of your request. I doubt you will find muc

Re: Jasper Reports

2007-06-11 Thread Carl Karsten
[EMAIL PROTECTED] wrote: > Has anyone successfully used Jasper Reports on the server being called > from a Django view? > > I've done a few things with ReportLab, but we have the need for a > graphical Report Designer, which I don't believe exists for Report > Lab. Check out: http://dabodev.com

db rights

2007-06-12 Thread Carl Karsten
What are the minimum GRANT options I need for running syncdb and the minimum needed for normal use? Everything I find on the web does a blanket ALL, some even on all DBs of the whole server. I couldn't find anything in the docs, and it really should be spelled out. Carl K --~--~-~--~

persistant dict

2007-06-17 Thread Carl Karsten
I have a function that takes a dict and a string, returns a list: def trie_search(trie, s): ... return res mk_trie(the_trie) takes 15 seconds to build from a static list of 750,000 words.txt so I don't want to call it every time I need to call trie_search(). So I want to build the_tr

Re: persistant dict - using twisted

2007-06-17 Thread Carl Karsten
> > I am considering using twisted to create a little server that does nothing > but > host trie_search(s) (note the lack of trie.) I realize that it will have to > return a string - that is ok, it is just a list of words found in words.txt. > > But twisted seems like overkill. otoh, I do w

Re: persistant dict

2007-06-19 Thread Carl Karsten
Jeremy Dunck wrote: > On 6/17/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > ... >> Use the low-level caching API to store things like this. Write a short >> funciton that retrieves a value from the cache and regenerates it and >> stores it if it is not in the cache. No extra work required. >

Re: persistant dict

2007-06-19 Thread Carl Karsten
Jeremy Dunck wrote: > On 6/19/07, Carl Karsten <[EMAIL PROTECTED]> wrote: > ... >> The django cache set/get does work. Thanks, M. > > Which cache backend are you using? The snippet I linked is for *a* > backend. Many of the Django caching backends do need to pickle

Re: persistant dict

2007-06-19 Thread Carl Karsten
Jeremy Dunck wrote: > On 6/19/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >>> Which cache backend are you using? The snippet I linked is for *a* >>> backend. Many of the Django caching backends do need to pickle since >>> they marshal out of process. >&g

looking for calender and a message board

2007-06-23 Thread Carl Karsten
I am going to build a site that needs a calender and a message board, plus some specialized things that will 'integrate' with those two features. So it would be good if the whole site used the same glue. Anyone have any suggestions? Carl K --~--~-~--~~~---~--~

Re: Introducing DjangoSites.Org

2007-06-23 Thread Carl Karsten
I just hit it - looks nice - I like the tag cloud. I have been meaning to hit it ever sense I saw your post, but today I had a need and was hoping DjangoSites.Org would help. what follows is not related to content, I realize it is new and will improve over time. As a 'visitor' I get the feel

Re: looking for calender and a message board

2007-06-23 Thread Carl Karsten
) did you see the Zyons Event Calendar? looking pretty cool... Carl K > > On Jun 23, 1:37 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> I am going to build a site that needs a calender and a message board, plus >> some >> specialized things that will 'integra

zyons GenericForeignKey

2007-06-26 Thread Carl Karsten
This is probably a zyons problem, but maybe someone here can help this nifty project. [EMAIL PROTECTED]:~/django/zyons/zilbo$ ./manage.py syncdb Error: Couldn't install apps, because there were errors in one or more models: zilbo.common.comment: 'module' object has no attribute 'GenericForeignKe

Re: zyons GenericForeignKey

2007-06-26 Thread Carl Karsten
Carl Karsten wrote: > This is probably a zyons problem, but maybe someone here can help this nifty > project. > > [EMAIL PROTECTED]:~/django/zyons/zilbo$ ./manage.py syncdb > Error: Couldn't install apps, because there were errors in one or more models: > zilbo.common.c

porting zion SimpleXMLRPCView to current django

2007-06-26 Thread Carl Karsten
I am trying to get http://svn.zyons.python-hosting.com/trunk/ working under the current django svn. I'll send .patch to zion's way when I am done. I need a recommendation from someone who has an understanding of what this code does. (I could probably hack it into submission, but that's not g

admin and .FileField()

2007-06-27 Thread Carl Karsten
Took me a bit to get .FileField() working in the admin, and im wondering if it needs to be as complicated as it seems. I think it currently violates DRY, and maybe that was intentional for 'security' or 'performance' reasons, or maybe it was just an oversight. I did the following, and got the

prettier html

2007-06-29 Thread Carl Karsten
nicely formated template code generates lots of CRs in the resulting html. I am trying to figure out how to make the html a bit easier to read. for instance, how can I make this: Not put the CR inside the ? I realize i may be asking for magic, but I am thinking maybe something like skip

Re: prettier html

2007-06-29 Thread Carl Karsten
Christian Joergensen wrote: > Carl Karsten wrote: >> nicely formated template code generates lots of CRs in the resulting html. >> I am >> trying to figure out how to make the html a bit easier to read. >> >> for instance, how can I make this: >> >

Re: prettier html

2007-06-29 Thread Carl Karsten
Doug Van Horn wrote: > On Jun 29, 12:20 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> for instance, how can I make this: >> >> > {% ifequal day.day day.today %} class="today"{% endifequal %}> >> >> Not put the CR inside the ? > > I

Re: prettier html

2007-06-29 Thread Carl Karsten
Carl Karsten wrote: > Christian Joergensen wrote: >> Carl Karsten wrote: >>> nicely formated template code generates lots of CRs in the resulting html. >>> I am >>> trying to figure out how to make the html a bit easier to read. >>> >>> fo

Re: prettier html

2007-06-30 Thread Carl Karsten
oh yeah... thanks. I have head of BeautifulSoup - never used it before. my pages html are now much more readable. Carl K Michael Trier wrote: > Make sure you have an __init__.py in that directory. > > Michael > > On 6/29/07, Carl Karsten <[EMAIL PROTECTED]> wrote:

component integration

2007-07-01 Thread Carl Karsten
I am wondering what the 'best practice' is for my current problem, which is basically using someone else's work but keeping it isolated from my own. I am building a site that needs an "event calender." Justin Lilly has done something similar and gave me http://justinlilly.no-ip.org/svn/trunk/

Re: looking for calender and a message board

2007-07-01 Thread Carl Karsten
Justin Lilly wrote: > errr.. sorry. misclicked. You can find the source under the "agenda" folder > of: > > http://justinlilly.no-ip.org/svn/trunk/gtd/ > > If you need anything regarding it, let me know! > -justin Working out pretty good for me. thanks. Hope you don't mind me questioning th

index.html

2007-07-02 Thread Carl Karsten
how do I set a default anything for when a user hits http://foo.com they get index.html or any other file? I can see having a static file that does a redirect - wondering if there isn't a better way. Carl K --~--~-~--~~~---~--~~ You received this message becaus

Re: index.html

2007-07-02 Thread Carl Karsten
Dennis Kaarsemaker wrote: > On ma, 2007-07-02 at 12:49 -0500, Carl Karsten wrote: >> how do I set a default anything for when a user hits http://foo.com they get >> index.html or any other file? I can see having a static file that does a >> redirect - wondering if the

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> > wrote: > >> all the 'settings' are taken care of for you so you don't have to do any >> exports or anything like that. The import statement for Context and Template >> should work fine when you use the above command. >> >

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > > > On Jul 2, 2:30 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> walterbyrdwrote: >>> On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> >>> wrote: >>>> all the 'settings' are taken care of for you so you

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > On Jul 2, 5:13 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > >> "not using X" does not say what you are doing - my best guess is "what will >> be >> available if I just run python?" if so, the answer is "nothing other

Re: Sybase support for Django

2007-07-03 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/3/07, adm <[EMAIL PROTECTED]> wrote: >> Russ, >> I sure can try that. The problem is I haven't gone through the >> Django framework in details as such, which make me quite helpless >> while adding the support. > > Thats fine. However, as fair warning - this

Re: Sybase support for Django

2007-07-03 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/3/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Russell Keith-Magee wrote: >>> Thats fine. However, as fair warning - this is the first time that >>> Sybase support has been requested (compared to the regular requests >

Re: newb: Model DateTimeField and Timedelta

2007-07-03 Thread Carl Karsten
johnny wrote: > My model named: Post > > It has a field created_at as: > created_at = models.DateTimeField(auto_now_add = True) > > Would Post.created_at be of string or datetime ? > > I want to add 2 weeks to it, like Post.created_at + 14 days. Can I do > this? > Post.created_at =Post.created

Re: MySQL Got packet bigger than 'max_allowed_packet'

2007-07-03 Thread Carl Karsten
Martin Winkler wrote: > Am Tue, 03 Jul 2007 15:07:14 - > schrieb "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > >> We are using mysql 5.0.42 and are getting this error when trying to >> insert records of over 5M. > > I may sound nosy, and apologize for that. But don't you think that you > have a

Re: Again, django and MSSQL

2007-07-03 Thread Carl Karsten
mamcxyz wrote: > I try, with not sucess to apply the patch for make worj django and MS > Sql. > > > The tickets is a jungle and not see the logic in how is the thing > organized. I'm building a store based in satchmo for integrate a > couple of local ERP system, based in MS Sql, so I have a moti

Re: MySQL Got packet bigger than 'max_allowed_packet'

2007-07-04 Thread Carl Karsten
[EMAIL PROTECTED] wrote: > Thanks Martn and Carl. > > I would really like to avoid having to re design the architecture of > the application at this stage (its a case of the requirements changing > after roll out), althougth thanks for the comments re serving large > data volumes. > I have made t

Re: An idea on DB migration

2007-07-04 Thread Carl Karsten
Noam wrote: > For example, say that I have a directory with the old site (and old > models) and a directory with the new site. The only difference between > them is that I renamed the field store.Book.name to > store.Book.book_name. I will run "django-admin.py migrate oldsitedir > newsitedir". Th

Re: An idea on DB migration

2007-07-04 Thread Carl Karsten
Noam Raphael wrote: > On 7/4/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> I don't like the "edit the file" part. I can think of 2 alternatives: >> >> 1. add an attribute to one/both of the models. something like >> >> class Book(mod

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Fri, 2007-07-06 at 07:18 -0700, Filippo Santovito wrote: >> Hi all, >> I'm having a strange problem with a view. >> Its code runs well if I test if in the shell but seems to block the >> dev server: >> >> #django 0.96 >> def html2pdf(request, url = None ): >> fro

Re: ubuntu 6.06 deployment issues

2007-07-06 Thread Carl Karsten
Graham Dumpleton wrote: > On Jul 6, 2:59 pm, John-Scott <[EMAIL PROTECTED]> wrote: >> On Jul 6, 12:29 am, Graham Dumpleton <[EMAIL PROTECTED]> >> wrote: >> >>> Hmmm, I'm not sure the documentation is actually accurate. When you >>> use manage.py to run up development server for Django, it will >>>

object_list=[] ?

2007-07-07 Thread Carl Karsten
# views.py class Event(models.Model): title = models.CharField(maxlength=255) eventdate = models.DateField() description = models.TextField(blank=True) def __str__(self): return "%(ed)s %(t)s" % {'t':self.title, 'ed':self.eventdate } # models.py # get Events fro

mix in view or template?

2007-07-07 Thread Carl Karsten
I am trying to figure out the best place to matchup Events and Dates when rendering a 'basic calendar.' Events: 0, 1, more per date. Dates: a list of all the dates in a month, so about 30 - one for each day. # views.py class Event(models.Model): title = models.CharField(maxlength=255)

Re: object_list=[] ?

2007-07-07 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Sat, 2007-07-07 at 14:59 -0500, Carl Karsten wrote: >> # views.py >> class Event(models.Model): >> title = models.CharField(maxlength=255) >> eventdate = models.DateField() >> description = models.TextField(bla

Re: mix in view or template?

2007-07-07 Thread Carl Karsten
Carl Karsten wrote: > I am trying to figure out the best place to matchup Events and Dates when > rendering a 'basic calendar.' > > Events: 0, 1, more per date. > Dates: a list of all the dates in a month, so about 30 - one for each day. > > # views.py > class

importing users from another db

2007-07-07 Thread Carl Karsten
I am migrating a site from .net/access to django. the MySql Migration Wizard gets the data out of access and into a MySql db nice and easy. There is even some provision for scripting it, but don't ask me about that cuz I havn't used it yet :) I can write .sql and python easy enough, and I am

Re: importing users from another db

2007-07-07 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/8/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> I am migrating a site from .net/access to django. the MySql Migration Wizard >> gets the data out of access and into a MySql db nice and easy. There is even >> some provision for scr

Re: importing users from another db

2007-07-07 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/8/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Russell Keith-Magee wrote: >>> Django users have many skills. Unfortunately, mind reading is >>> generally not one of those skills :-) >>> >> Yeah, I see what you

arrays in templates

2007-07-08 Thread Carl Karsten
I have this working with some extra code in my view, but I would like to know how I could have done it in the template: # view.py from datetime import datetime, date # Week starts on Sunday c=calendar.Calendar(calendar.SUNDAY) # get all the dates that will be displayed, #

dump an object

2007-07-08 Thread Carl Karsten
For quickly displaying an object on a page (in particular from a generic view), is there something that is slightly better than {{object}} ? Something between that and the admin look/feel. The goal is to show someone what data will be displayed ins a some what sane way during development, and

Re: dump an object

2007-07-08 Thread Carl Karsten
Jeremy Dunck wrote: > On 7/8/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Something between that and the admin look/feel. The goal is to show someone >> what data will be displayed ins a some what sane way during development, and >> make it pretty some other day. >

Re: dump an object

2007-07-09 Thread Carl Karsten
Jeremy Dunck wrote: > On 7/8/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Right look, wrong source. My {{object}} is the results of a calendar display >> with a bunch of these: http://dell29:8000/eventcal/detail/600/ > > I seriously doubt "dell29:8000" i

Re: faking request path

2007-07-09 Thread Carl Karsten
[EMAIL PROTECTED] wrote: > Hello all! > > Is there an easy way to fake the request path in django and/or pyton? > I'm looking for something like this: > a django page which is called with this URL: > http://www.test.ch/test1/test2/test3 > should thinks it is run in the top-folder that means: htt

Re: bug in unique_for_year with 0.96?

2007-07-09 Thread Carl Karsten
Filippo Santovito wrote: > I'm trying to use unique_for_year but it seems the Admin simply > ignores this constraint: > i'm using this model for testing and I'm able to add two entry with > the same date: > > class MyModel(models.Model): > class Admin: > pass > myd

Re: dump an object

2007-07-09 Thread Carl Karsten
Jeremy Dunck wrote: > On 7/8/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Right look, wrong source. My {{object}} is the results of a calendar display >> with a bunch of these: http://dell29:8000/eventcal/detail/600/ > > I seriously doubt "dell29:8000&

effective dates

2007-07-10 Thread Carl Karsten
status.effectivedate is when a status 'starts', (like closed for repairs.) How do I get the 'current status based on current date' ? so if the following 3 records are in the table: status effective date, description 1/1/2007 - open for business 3/24/2007 - closed for remodeling 5/1/2007 - open wi

Re: effective dates

2007-07-10 Thread Carl Karsten
Tim Chase wrote: >> status.effectivedate is when a status 'starts', (like closed for repairs.) >> How do I get the 'current status based on current date' ? >> >> so if the following 3 records are in the table: >> status >> effective date, description >> 1/1/2007 - open for business >> 3/24/2007 -

ForeignKey(User, list_display=full?

2007-07-10 Thread Carl Karsten
I am using the django User like so: # models.py from django.contrib.auth.models import User class Event(models.Model): title = models.CharField(maxlength=47) eventdate = models.DateField() contact = models.ForeignKey(User, null=True, blank=True ) right now I get this in admin:

Re: ForeignKey(User, list_display=full?

2007-07-10 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote: > >> I am hoping to do something like >> contact = models.ForeignKey(User, list_display = ('first_name', 'last_name') >> ) > > A big -1 on this ide

Re: installation issues

2007-07-10 Thread Carl Karsten
surfwizz wrote: > I am having trouble installing Django on Mac OSX 10.4.10. Any help > would be welcome. Thanks! > > Im gona take a shot: Can you run python and get a >>> prompt? If yes, what version is it? and what happens when you >>> import django Carl K --~--~-~--~

avoiding 'matching query not exist'

2007-07-11 Thread Carl Karsten
This deals with empty sets: dinner_special = Event.objects.filter( eventtype__eventcode='restspec', eventdate = datetime.now() ) Today's Dinner Secials: {% if dinner_special %} {{ dinner_special.0.title }}{{ dinner_special.0.description }} {% else %}

Re: avoiding 'matching query not exist'

2007-07-11 Thread Carl Karsten
James Bennett wrote: > On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> How can I do something similar with: >> coursestatus = Event.objects.filter( >>eventtype__eventcode='corsecond', >>eventdate__lt = datetime.now() >&g

Re: new django site: PotterPredictions.com

2007-07-11 Thread Carl Karsten
Kai Kuehne wrote: > Well, I meant without to register myself on the site. in case it isn't crystal clear: http://www.codinghorror.com/blog/archives/000881.html "Removing The Login Barrier" Carl K --~--~-~--~~~---~--~~ You received this message because you are su

  1   2   >