Re: Django model version control

2008-10-30 Thread christian
I tried it out David, and it is simple and it works, I was just about to make the same exact thing. Thank you! On 4 okt, 15:21, David Hall <[EMAIL PROTECTED]> wrote: > I've created a Google group for discussing possible improvements to the > django-reversion project.  The group is called 'django-

custom tag for html fragment with dynamic content

2008-09-22 Thread christian
h would load a feed inside the 'content' div. Any other feeds or other content such as latest news, latest members etc. would be written with the same {% instance %} tag but loading different content. Am i completely missing something or is there a widely use

Re: custom tag for html fragment with dynamic content

2008-09-22 Thread christian
This is how i am now doing it i call the template: {% instance block %} {% include_feed "http://localhost:8080/feeds/news/"; 5 feeds/ test.html %} {% endinstance %} my code is: @register.tag(name="instance") def make_instance(parser, token): try: tag_name, arg = token.

autocomplete searching many to many admin with large amount of data

2009-02-10 Thread christian
't see the wood for the trees in admin. Maybe this is easier/clearer than i thought and somebody can point me in the right direction? Or better: does anyone have a solution for this already? Thanks! Christian --~--~-~--~~~---~--~~ You received this mes

Re: autocomplete searching many to many admin with large amount of data

2009-02-11 Thread christian
This is copied from: http://jannisleidel.com/2008/11/autocomplete-form-widget-foreignkey-model-fields/ I just changed his idea for something which i think is widely needed, namely a ManyToMany search which doesn't load all the choices making things slower. I recommend making this better as i am

Creating multiple objects at once

2009-06-30 Thread Christian
If there a way to create multiple objects at once without calling .save () for each object. Editing 200 objects with .update() is much faster than doing the same thing with .safe() and I'm searching for a similar way to create new objects. --~--~-~--~~~---~--~~ Yo

Support European date format for JavaScript

2008-04-07 Thread Christian
be the modification works with 0.96, too. Does it? This point is quite important for me, because in my opinion the current date format is very confusing - or at least annoying, because counterintuitive - for a average German user. Christian --~--~-~--~~~---~--~~ Yo

Do some task using models in a view before a request is executed.

2018-08-02 Thread Christian
in advance, Christian def rfm_update(): rfms = RFM.objects.all() rfms.delete() df_rfm = pd.DataFrame(list(Order.objects.all().values())) rfm_data = processing(df_rfm, datetime_col='order_datetime', customer_id_col='customer_id').reset_index() RFM.objects.bulk_create([RFM(custo

Re: Do some task using models in a view before a request is executed.

2018-08-03 Thread Christian
Thanks! Am Donnerstag, 2. August 2018 15:18:36 UTC+2 schrieb Jason: > > DRF viewsets provide default implementations of list (GET resource/) and > retrieve (GET resource/id). You can just reimplement those methods and > call `rfm_update` in them. > -- You received this message because you are

SwaggerUI template override

2018-08-19 Thread Christian
Hi, I'm trying to use a customized version of index as describe here- https://django-rest-swagger.readthedocs.io/en/latest/customization/#customization I tried different places and settings in the TEMPLATE settings.py, but It won't work. Thanks in advance Christian -- You rec

Re: SwaggerUI template override

2018-08-21 Thread Christian
I got it , it works as it is described, my fault. Am Sonntag, 19. August 2018 17:57:15 UTC+2 schrieb Christian: > > Hi, > > I'm trying to use a customized version of index as describe here- > > https://django-rest-swagger.readthedocs.io/en/latest/customization/#customizatio

Re: Hi guys, I'm having trouble with newform-admin interface

2008-10-25 Thread Christian Joergensen
u probably need to do `python manage.py syncdb`, as you have probably installed the django.contrib.sessions application after you ran a syncdb the last time. Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message be

Re: Does the development enterprise application have the available third party report library

2008-11-13 Thread Christian Joergensen
vance ma wrote: > Does the development enterprise application have the available report > library? What application? What library? Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because y

Re: set session expiry time in settings.py

2008-12-25 Thread Christian Joergensen
burcu wrote: > Him Team, > > i want to set session expiry time in settings.py. Could you please > help me regarding this case? http://docs.djangoproject.com/en/dev/topics/http/sessions/#session-cookie-age -- Christian Joergensen http://www.tec

Re: models problem

2009-01-06 Thread Christian Joergensen
respond to the SQL you are running? /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: which class does ####__iexact belong to, where #### is the attribute of a model?

2009-01-10 Thread Christian Joergensen
o put in place of '???' > Where does 'field__iexact' actually come from? > Is it part of MyModel or somewhere else? You don't need getattr: MyModel.objects.filter(**{ my_dict['search_field'] + '__iexact': my_dict['search_val

Re: Deleting a session variable

2009-01-10 Thread Christian Joergensen
his is the case I get an error > when I do 'del request.session['percent']'. How do I check to see if > 'request.session['percent']' has been created? if 'percent' in request.session: del request.session['percent'] Regards, C

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Christian Joergensen
commands >>> [line.split()[0] for line in commands.getoutput("/usr/bin/who").split("\n")] ['razor'] /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: TypeError - unpack non-sequence

2008-08-20 Thread Christian Joergensen
ast where your project worked? /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Module not callable (Practical Django Projects)

2008-08-24 Thread Christian Joergensen
odule. What is it? Try importing markdown and running the above snippet outside of django in a python shell. Does that work? Regards, Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Christian Hoeppner
I've heard rumours about fabric (ask google, sorry can't remember url now). ~Chris On 09/09/2008, at 9:14, ristretto.rb wrote: > > Hello, > > What do you use to build a Django project? By build I mean, > > * run unit tests > * copy files to a distribution set based on a target (production,

Re: json

2008-09-24 Thread Christian Joergensen
ell, func is my javascript function which > handles data from django. but I am mainly confused about url. `url` is the URL where jQuery will request the JSON data from. It could be `/json/somefeed/` or whatever you have configured the URL of your Django view to in urls.py. Regards, Christian

Re: amd64 vs x86 hosting

2008-09-24 Thread Christian Joergensen
atabase instead, and not so much whether you should use psyco or pyrex to speed up your Python code. Regards, Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: how to setup the admin media?

2008-10-09 Thread Christian Joergensen
Ethan wrote: > In my first django project, use the apache server, in the admin page, > it can't find the css file. and how does the admin css file generate? http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id3 -- Christian Joergensen http://www.tech

Re: Multiple relationships between multiple tables

2008-10-13 Thread Christian Joergensen
erField()s must actually be like ForeignKey(Person > or Phone or Email or Address or eAddress) .. Any ideas on how to achieve > this? Why aren't you using ManyToManyField's? It sounds like that's what you're trying to emulate ;) Regards, Christian -- Christia

Re: how to assign a value to a model object field

2008-10-15 Thread Christian Joergensen
Lenny wrote: > Hi! > How can I assign a value to a model object field where the field name > in a string? As with any other python object, you can use setattr: setattr(instance, "property", "value") Regards, -- Christian Joergens

Re: cannot import name SimpleCookie on new Django install

2008-10-18 Thread Christian Joergensen
d module in the standard library for python 2.5 (and 2.4) Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: ensuring a string does not get escaped in views.py

2008-10-18 Thread Christian Joergensen
unning `runserver`. print "album_uri_to_copy is", album_uri_to_copy album_feed = gclient1.GetFeed(album_uri_to_copy) More about debugging django here: http://simonwillison.net/2008/May/22/debugging/ Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~

Re: page not updating right away

2008-10-18 Thread Christian Joergensen
cache > setting going on in my settings.py file. Is this a python cache > issue? I've tried pkill python, but doesn't work either. Is there a > template/web page cache in Django? No there isn't. Could you show us the code for yo

Re: syntax for runtime evaluation of Q objects

2008-10-18 Thread Christian Joergensen
ue, just as if you wrote: var1 | var2 | var3 Another thing is - unless you use the key of the dictionary, a list might be more appropriate for this ;) Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message

Re: render_to_response failed to render media files in base.html

2008-10-20 Thread Christian Joergensen
_to_response to have context processors activated and get any context processor generated extra context variables available in your template. Use the RequestContext as a base context when using render_to_response: return render_to_response('contact.html', { 'form&#

Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-29 Thread Christian Joergensen
). What if one of the machines was unresponsive at the time of the upload? Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: newbie: printing a date in a template

2009-02-02 Thread Christian Joergensen
oesn't > print. Is there something simple I am doing wrong? Is `todaysdate` listed in your context? /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

AppEngine

2009-02-06 Thread Christian Hoeppner
I've been outside of the Django scene a couple months now, busy on other things. I remember AppEngine being the big new thing around, and Django could run on it, with a few hitches. How's things these days? Would you use AppEngine to run a production site for a client? --~--~-~--~-

Re: mod_python vs. Django?

2009-02-09 Thread Christian Hoeppner
Think about Django as Cake PHP, Symfony, Code Igniter, etc from the PHP scene. You still need mod_php to run them =) Obviously, Django has a damn big cool factor added, for not being PHP =) Yours, Chris On 09/02/2009, at 10:26, Russell Keith-Magee wrote: > > On Mon, Feb 9, 2009 at 6:54 PM, V

wxDjango anyone?

2009-02-13 Thread Christian Berg
As this is my first Post here, i wan't to seend a warm welcome here to you Django Users. Like many other People here on this List (and out there in the real World). I startet to love Python and Django (and PyGame). I'm not a real Programmer, i only code some small and trivial web-apps for person

Re: Fwd: python sql query in django

2009-02-23 Thread Christian Joergensen
thing like: > > pub=t.techpubcombo.publications_set() I believe this would work: publications = Publication.objects.filter(techpubcombo__technology=t) Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this me

Re: Permissions per model instance

2009-09-10 Thread Christian Schilling
I wrote an app for this some time ago, i use it in production without problem since: http://github.com/initcrash/django-object-permissions/tree/master its quite easy to use (look at the testcases): when you add it to your project every model gets an additional "edit all" permission that allows g

Re: Something is eating memory. How to track it down?

2009-04-07 Thread Christian Joergensen
= Model.objects.all().values_list("id", flat=True) for obj_id in objs: obj = Model.object.get(pk=obj_id) do_something(obj) ... and my RAM usage was below 30 MB at all time. > Maybe it's getting late and I deserve a nice gin and tonic... Cheers, -- Christian

Re: Something is eating memory. How to track it down?

2009-04-07 Thread Christian Joergensen
you. I didn't know about that function. That is certainly prettier than my "hack" :) I assumed that was the default behaviour when iterating. There shouldn't be any need to cache previous items, as there (to my knowledge).is no way to retrieve previous items from a python ite

Re: Fieldlookup: NOT

2009-04-16 Thread Christian Joergensen
I looked at the queryset API, but it seems that there is no > alternative to qs.exclude(). What's wrong with exclude() as it is now? -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribe

Django Presentation & Slides

2009-04-17 Thread Christian Berg
y. This is very helpful for community members, to do professional presentations. This directly results in good publicity and more users. conclusion: i think we should open a new Wiki Page on djangoproject.org with presentation materials with best regards Christian --~--~-~--~~---

Re: ..... in templates

2009-04-17 Thread Christian Berg
- Homepage without Frontpage/Dreawaver. You can start with django, or something like this. Sorry if this sounds harsh, but it is useless to learn how to drive a Truck, if you can't drive an car. with regards Christian On Fri, 17 Apr 2009 06:45:17 -0700 (PDT), 83nini <83n...@gmail.com> wrot

Re: Django ImageField url not relative to MEDIA_ROOT

2009-04-17 Thread Christian Berg
Hello! The ImageField and FileField URLs are relative to MEDIA_URL It's important to skip the leading slash, and add an slash to the end of the path Attribute. example: image = models.Imagefield(path="images/") In the Template use {{MEDIA_URL}}{{image.url}} On Fri, 17 Apr 2009 08:00:39 -0700

Re: Importing from many apps causing import conflicts?

2009-04-22 Thread Christian Berg
Hi! Your Posting says: name=models.IntegerField() Thats an Integer field thats can hold numbers like 1 or 98722 But then you do this: Group.objects.filter(name='blah') 'blah' is an Character-String and not an Number. I belive that the name should contains something with letters so you s

Re: How to automatic backup Postgres on Windows?

2009-04-22 Thread Christian Berg
Do i understand correctly... ...you want to create a pgsql dump "on the fly" from an djano site? IMHO not a good idea... what happens if the browser times out? Maybe you can try to trigger a backup in the background, or do backups with an scheduler... anways, have you tried this on? http://docs.p

Re: New site: www.portaltotheuniverse.org

2009-04-24 Thread Christian Berg
with best regards Christian On Fri, 24 Apr 2009 01:38:35 -0700 (PDT), Gath wrote: > This is i darn so coo l!!! > Man you guys are killing me with this stuff... > This is such a coincidence; > - Am i django developer - i love it > - and am a fanatic of Astronomy... so i get to lea

Re: url template tag help

2009-04-29 Thread Christian Berg
it also helps to rename the URL to view-about-page. Dashed do work. It seems that URL Namen are bound to slug resitrictions. On 29 Apr., 03:06, Julián C. Pérez wrote: > hi everyone > i need some help over here... please! > i don't know what it's wrong... > > the url i'm trying to get around is

Re: Trying to figure out "featured for month" view

2009-04-29 Thread Christian Berg
i would do it the other way around. I would create a featured_object model containig a DateField and an ForeignKey to the Featured Thing. This should be more performant for a big directory like dmoz, sourceforge, freshmeat, happy penguin You could also add more Info this way. For Example you

Re: Email error reporting not working

2009-05-25 Thread Christian Joergensen
- I set DEBUG to False > - I defined an Admin user and entered my email address > - I ensured that Postfix is installed and running > > Is there anything else I need to do? I will gladly provide any extra > information to troubleshoot this. Does postfix receive the e-mail? Check

Re: Question: What's the best way to denormalize M2M data?

2009-06-03 Thread Christian Schilling
On May 19, 5:51 am, palewire wrote: > I've stumbled my way into methods for automatically denormalizing > ForeignKey data -- and now see that better  approaches have been > packaged up the very cool django-denorm(http://code.google.com/p/ > django-denorm/) -- which is great. > > But I'm curious

Re: Is it bad to rely on db exceptions?

2009-06-13 Thread Christian Schilling
the most obvious reason why this is bad is: it will stop working when you switch to an other database backend. but aside from that: what are you trying to archive? looks a lot like what the get_or_create() shortcut does... On Jun 13, 8:42 am, koepked wrote: > Is it bad practice to rely on db exc

Re: Models for a hockey database

2009-10-08 Thread Christian Wittwer
Hi, > class Team(models.Model): >    name = models.CharField(max_length=60) > > class Player(models.Model): >    surname = models.CharField(max_length=60) >    lastname = models.CharField(max_length=60) >    team = models.ForeignKey(Team) > > Now you can just specify the home_team and the away_te

Re: Models for a hockey database

2009-10-08 Thread Christian Wittwer
Hi, > I have a pretty large site that tracks a football team and it's league > ( http://www.muskegohitmen.com ). That sounds interesting.. ;-) > Things you'll probably want to consider > Seasons - a very small model class, but organizing things by a season > becomes pretty tricky with out this.

Cannot import other model

2009-10-09 Thread Christian Wittwer
Hi, I have a strange problem with importing models from an other app. /myapp/season/models.py --- from myapp.team.models import Player class Game(models.Model):

Re: Cannot import other model

2009-10-09 Thread Christian Wittwer
> from shcbelpa.season.models import Game > This is the line of code that generates the error right? > Is myapp = shcbelpa ? Yes, exactly. I forgot to replace.. Any idea why the import doesn't work? > On Fri, 2009-10-09 at 10:39 +0200, Christian Wittwer wrote: >>

Limit choices based on a foreign key

2009-10-12 Thread Christian Wittwer
Hi, I have a question regarding the admin interface of django. My models class Team(models.Model): name = models.CharField(max_length=10) class Player(models.Model): lastname = models.CharField(max_length=60) class Goal(models.Model): game = models.ForeignKey(Game) goal_scorer

Re: Limit choices based on a foreign key

2009-10-12 Thread Christian Wittwer
>    team = models.ForeignKey(Team) That won't work, because I need to know which position the player played at the game. The position can change from game to game. That's the reason I used the GameRoster. Chris > Christian Wittwer wrote: >> Hi, >> I have a qu

Re: Limit choices based on a foreign key

2009-10-12 Thread Christian Wittwer
ion of player gets limited as I want. When I try to edit it inline in the game, the GoalForm seems not to work. It's going to be ignored. When I try to comment in "form = GoalForm", the whole app doesn't run anymore. I got a DoesNotExist exception, but I think this is because it

Re: Discovering the ip/port in use by runserver

2009-10-27 Thread Christian Joergensen
inside > the django process to know what I did. You could probably just read it from sys.argv ;) /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Per-object permissions

2009-11-28 Thread Christian Schilling
http://github.com/initcrash/django-object-permissions/ implements this on 1.1 (it's not hard at all, so i don't really understand the change planed for 1.2) there are no docs yet, but the testproject shows how to use it: just use ObjectPermissionAdmin as base for the admin classes instead of ModelA

inclusion tag variable resolving

2010-05-24 Thread christian verkerk
i made an inclusion tag for making an image button of varying widths, which i call through: {% make_button 'click me' item.get_absolute_url %} i then resolve the second param in context for the button link, however i would like to be able to do something along the lines of: {% make_button 'click

Re: have to use older versions of django/python

2010-09-16 Thread Christian Ştefănescu
end email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Mit freundlichen Grüßen, Christian Stefanescu Kaiserdamm 11, 14057 Berlin, Deutschland, Europa, Erde, Milchstrasse st.

Re: Newforms makes unicode String from a dictonary

2007-06-11 Thread Christian Schmidt
I use at this time the ugly version with eval(). I really don't know how ugly it is. Can I have problems if there is python code or something else in the uploaded file? What is the best solution for me until this is fixed? Christian. --~--~-~--~~~---~--~

Re: prettier html

2007-06-29 Thread Christian Joergensen
ite. from BeautifulSoup import BeautifulSoup class BeautifulSoupPrettifyMiddleware(object): def process_response(self, request, response): if 'text/html' in response['Content-Type']: soup = BeautifulSoup(response.content) response.content = so

Re: Database setup

2007-07-14 Thread Christian Hoeppner
Sure you can. You might want to look at sqlite, as it's the easiest to set up. You can painlessly switch to a "better" database engine when going to production, though sqlite does quite well the job, even in production. surfwizz escribió: > I'm trying to do the django tutorial at > http://w

Defining your own fields for newforms

2007-07-15 Thread Christian Joergensen
complicated, so please let my know if I can clearify anything ;) The source code for CurrencyValue and CurrencyField is here: http://dpaste.com/14508/ Thank you, -- Christian Joergensen | Linux, programming or web consultancy http://www.razor.dk | Visit us at: http://www.gmta.info signature.asc Description: OpenPGP digital signature

Re: Defining your own fields for newforms

2007-07-15 Thread Christian Joergensen
nclear on that issue. I'll go with the DecimalField. Thank you, -- Christian Joergensen | Linux, programming or web consultancy http://www.razor.dk | Visit us at: http://www.gmta.info signature.asc Description: OpenPGP digital signature

Re: Flash Message template tag

2007-07-15 Thread Christian Joergensen
rtconner wrote: > Oh yeah I also wrote a FlashMsgMiddleware that makes this even easier. > It's not needed at all, but it'll save you a line of code here and > there. I can't post it if anyone wants it. Why not just post it to http://www.djangosnippets.org ? :) -- Chri

Re: mod_python setup instructions

2007-07-17 Thread Christian Hoeppner
peyman escribió: > The mod_python instructions at > http://www.djangoproject.com/documentation/modpython/ > seems incomplete. I followed the tutorial, but I had to add 2 paths to > my Apache config before the mysite sample would work: the project > directory and it's parent. Or am I missing someth

Re: newforms for idiots and designers?

2007-07-21 Thread Christian Hoeppner
Austin Govella escribió: > I'm *almost* getting forms to work, but not quite. > > Can anyone recommend a newforms tutorial written for designers? > Something akin to Zoolander's School for Kids Can't Program Good. > > > > (And I *have* been reading. What's odd is that I used similar > structure

Re: removal of Django

2007-07-21 Thread Christian Hoeppner
[EMAIL PROTECTED] escribió: > Hi all.Django auto loaded onto my computer from( I believe) a Harry > Potter web site.I want to remove it,as it is messing up one of the web > sites that I frequent.The site shows a 404 error.As I am a newby to > computer with NO codeing experience,I am at a loss as to

Re: How to communicate with Authorize.net?

2007-07-22 Thread Christian Hoeppner
Greg escribió: > Is there any documentation on how to send form data to a Authorize.net > from within a Django view? > > Thanks > > > --~--~-~--~~~---~--~~ > You received this message because you are subscribed to the Google Groups > "Django users" group. > To po

Re: Blog engine

2007-07-28 Thread Christian Hoeppner
Henrik Lied escribió: > When you say "installs", do you mean that the plugin is retrieved from > the external site, and placed somewhere on the users host, or is it > constantly querying the plugin on a remote computer? > > The first of those two options would definitely be the best. But I'm > hav

Making the django documentation available from the admin documentation site

2007-08-23 Thread Christian Joergensen
/python or something? If anyone else has not done this before, I could start working with getting it integrated by getting the user to do a `svn export` of the docs to somewhere before firing up the admin :) Regards, -- Christian Joergensen | Linux, programming or web consultancy http://www.razo

Re: Making the django documentation available from the admin documentation site

2007-08-23 Thread Christian Joergensen
David Reynolds wrote: > Christian, > > SmileyChris has a rather cunning application that does just that: > > http://smileychris.tactful.co.nz/ramblings/django-documentation/ > Great, thanks. :) Regards, -- Christian Joergensen | Linux, programming or we

Re: Running django+apache on my macbook

2008-01-18 Thread Christian Joergensen
ook here: http://www.djangoproject.com/documentation/install/ Note the first paragraph of "Install Apache and mod_python". Developing your applications under mod_python is quite a hassle IMO. Regards, -- Christian Joergensen | Linux, programming or web consultancy http://www.r

Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Hi everybody, I really enjoy writing applications in Django but I ran into something very strange while doing my first internationalized app. I'm using the newforms-admin branch, revision 7192. All translations work fine, except in these cases: When I mark a string that spans multiple lines to b

Re: Problems using cron to run a python script

2008-03-04 Thread Jonas Christian
I ran into problems like that using cron and instead of trying to locate the real error in the paths (we were about to go live ...), I simple changed the cron line to read: 1 * * * * cd /path/to/script; /usr/bin/python update_feeds.py Why don't you try that and see if it helps... Jonas On 4

Re: Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Hi Malcolm: > Are you sure you haven't inadvertently introduced newlines into the > strings here? Can show us what the corresponding lines in the PO file > look like (include the comments before the msgid bit as well). This is what the PO file looks like: #: templates/host.html:14 #, fuzzy, pyt

Re: Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Malcolm, you're a saviour! That would explain why I didn't find anything in the Django documentation. I should have read up on gettext instead. Three cheers, Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: approach on newforms fields for foreign key that can be selected or created

2008-05-06 Thread Christian Joergensen
nst the current nfa-branch and finish it off some day ;-) Regards, Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: A twist on cross importing models

2008-05-07 Thread Christian Joergensen
;re stuck. You need to import the model files as modules. That is, you need to do `import foo.models` in bar/models.py and `import bar.models` in foo/models.py. Then you should be able to do `foo.models.Variable.objects...`. HTH, Christian -- Christian Joergensen http://www.technobabble.d

Re: A twist on cross importing models

2008-05-08 Thread Christian Joergensen
then you could just as well import it at the top of the file as you would otherwise. * that is, `import ...` not `from ... import ...`. /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are su

Re: IndexError instead of DoesNotExist with filter( )[0]

2008-05-30 Thread Christian Joergensen
s a queryset. Methods on querysets that return new querysets never raises DoesNotExist. See which methods that returns what on: http://www.djangoproject.com/documentation/db-api/ /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ Y

Re: Apache file permission, wont let me edit file

2008-06-02 Thread Christian Joergensen
oot access) for that. So use sudo og su if you have that kind of access. Else you need to contact your administrator and have her do the updates for you. Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message

Re: How to a record to a ManyToMany Table?

2008-06-03 Thread Christian Joergensen
Greg wrote: > Hello, > I'm trying to add a record to a ManyToMany table in a script. Use obj.m2mfield.add(related_obj). /Christian -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are su

Re: ASP.Net GridView Equivalent in Django

2008-06-05 Thread Christian Joergensen
Ian wrote: > I am .Net developer looking to switch over to Python. > > I have started looking at Django and was wondering if there is a > widget equivalent to ASP.Net's GridView in terms of richness of > functionality. What does ASP.Net's GridView do? Regards, --

Re: Add db tables on-the-fly

2008-06-22 Thread Christian Joergensen
Django idiom. If you insist, you could probably do (using 0.96): from django.core.management import syncdb syncdb() Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: How do I add the user ID to a template?

2008-06-24 Thread Christian Joergensen
x27;s a better way to do this, but I can't seem to find > an answer. Help! Use the RequestContext: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~-

Re: psycopg2

2008-06-24 Thread Christian Joergensen
solved at driver level, but is an application level problem. Regards, -- Christian Joergensen http://www.technobabble.dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

User id foreign key

2007-03-10 Thread Christian Hoeppner
Hi there! I wonder if there's a way to link a user to some kind of database entry using a foreign key field. The problem is, how would I define something like this? What's the actual name/path/something I use to reference the auth_user objects? Thanks! -- Chris M. Hoeppner Web design & consulta

Re: User id foreign key

2007-03-11 Thread Christian Hoeppner
wants to reply for the sake of completeness, it would also be great. Thanks! El dom, 11-03-2007 a las 06:48 +1100, Malcolm Tredinnick escribi�: > On Sat, 2007-03-10 at 18:07 +, Christian Hoeppner wrote: > > Hi there! > > > > I wonder if there's a way to link a use

I18n not working

2007-03-12 Thread Christian Hoeppner
Hi there, Actually, it's plainly that. It's just not working, and I don't really know where to look for a flaw. It's just a blind guess, but maybe django is not correctly locating my .mo files? I've triple-checked their location and tried in every place stated in the documentation or the django b

Re: Can anyone explain this?

2007-03-28 Thread Christian Joergensen
h__', '__init__', > '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', > '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', > '__rm

Dynamic query building

2007-04-02 Thread Christian Hoppner
Hi there! I've been thinking about including in my new app a kind of tag browser. The url is meant to be in the form of tags/A+B+C. Of course I know I can use OR queries for this kind of stuff... When the query string is constructed manually (as a string), I could simply get the tags from the

about newforms

2007-04-09 Thread Christian Hoppner
Hi there. I have noticed that the newforms documentation really lacks a lot so far. Not to say it's useless, but it's not enough to teach me how to use it. I have already decided to manually generate the two forms I'll need for my current project. So that's not the question. Now, what should

Re: SelectDateWidget unicode problem

2007-04-12 Thread Christian Schmidt
Got the same Problem here. On my Laptop all is fine but on the Server I got an Unicode Error. Seems to me, that the german month "März" isn't correctly encoded. Can someone help? On both PCs is DEFAULT_CHARSET = 'utf-8' in the settings and a postgres dat

Newforms and CSS classes

2007-04-30 Thread Christian Joergensen
d required" to make CSS styling easier. Am I overlooking something, or is newforms missing this? -- Christian Joergensen | Linux, programming or web consultancy http://www.razor.dk | Visit us at: http://www.gmta.info signature.asc Description: OpenPGP digital signature

Re: Newforms and CSS classes

2007-05-01 Thread Christian Joergensen
ld: Just thought I would mention my solution if anyone else is interested ;) Also, please let me know if anyone else have an easier solution to this. -- Christian Joergensen | Linux, programming or web consultancy http://www.razor.dk | Visit us at: http://www.gmta.info signature.asc Description: OpenPGP digital signature

  1   2   3   4   >