Slugify in characters with accent and others

2007-06-19 Thread Jonas
For if you need 'slug' non-ascii characters as *Á È ï ô ü ñ*, that will be converted to *A E i o u n* before of slug the string, I have added a patch in: http://code.djangoproject.com/ticket/2276 http://code.djangoproject.com/attachment/ticket/2276/defaultfilters.py.patch --~--~-~--~---

Internation format for date and time

2007-06-19 Thread Jonas
There is a discussion about if Django should set the date and time to *ISO standard by default* or to following with the actual *north american*. Note that when you create a new project you could change the default to your localization for date and time (at least for north american localization).

International format for date and time

2007-06-19 Thread Jonas
Sorry for the subject --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PRO

Re: Slugify in characters with accent and others

2007-06-20 Thread Jonas
On 20 jun, 01:25, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Can you please stop reopening that ticket after it's been closed twice. > As I indicated the last time you re-opened it, we are working on a more > comprehensive solution, based on some earlier work of Bill de hÓra's > over in ticke

AroundWord - Blog Publishing System

2007-07-09 Thread Jonas
AroundWord_ is a free and open Blog Publishing System built on Python using the most advanced technologies: * Framework: Tesla upon Pylons * Database Engine: SQLAlchemy + Elixir + SAContext * Templates: Mako * Widgets and Forms: ToscaWidgets + twForms + FormEncode * Authorization and Authenticati

Accents in translation strings

2007-07-31 Thread Jonas
e. If there is no accent, translation works. Any idea of what could be wrong? As a PS, I add the (mock) template I use, the django.po file, the source html file when browsing in French and the same when browsing in English. Thank you very much for any help Jonas template

Internationalization and accents

2007-08-02 Thread Jonas
rs in the translated page. Has anybody else experienced this? I think that's a real nuisance: why should the original language be English? I have already mentionned, with more details, the problem in the subject "Accents in translation strings", but there wa

Re: Internationalization and accents

2007-08-03 Thread Jonas
> Also, you should be using a recent SVN checkout for this to work. It does work with he latest development version. Thank you! Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 17:43, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > I'm not entirely clean why you posted this here -- are you proposing > that Django switch to Launchpad (hint: don't). Of course that not. I posted it here bacause I have been that there are many projects based on Python/Django h

Fwd: Proposal for the Web User Interface of the OSSEC HIDS

2007-08-10 Thread Jonas
arded message -- From: Ian Scott Speirs <[EMAIL PROTECTED]> Date: 10 ago, 14:27 Subject: Proposal for the Web User Interface To: ossec-list Jonas wrote: > On 9 ago, 23:33, Jeff Schroeder <[EMAIL PROTECTED]> wrote: >> In opensource, proposing something is often equivalent t

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 14:15, Horst Gutmann <[EMAIL PROTECTED]> wrote: > Launchpad is definitely a nice service with a nice community esp. since > their integration of a translation service, but it also has some quite > strange limitations currently like that you can't effectively remove > branches, which w

Launchpad - Community for free projects

2007-08-10 Thread Jonas
I found a great service to hosting free projects of software that let a great relation with the community and integration with Bazaar control version. Its name is launchpad.net, and the company behind is Canonical, the Ubuntu's creator. I have remained very impressed since I saw the tour [2], and

Re: Launchpad - Community for free projects

2007-08-10 Thread Jonas
On 10 ago, 22:16, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 8/10/07, Jonas <[EMAIL PROTECTED]> wrote: > > > I posted it here bacause I have been that there are many projects > > based on Python/Django hosted on Google Code and as found a be

SproutCore - framework for JS

2007-08-12 Thread Jonas
SproutCore [1] is a MVC application framework for JavaScrip and has been adopted by Apple on its new .Mac Web Galleries. It's perfect to building the web user interface. Now, it can be used together to Rails applications [2], and would very well that Django could use it too. [1] http://www.spro

Re: Django deployment à lá Capistrano

2007-09-11 Thread Jonas
Before that someone starts working about this, you must consider this: 1. It's already has been created a project with that intention. Its name is capystrano [1] and althought has been not uploaded code -he could be working offline-, it would be best contact with its author to doesn't duplicate w

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread jonas
Regards, Jonas; -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more optio

Re: Marketplace for Django apps

2012-09-11 Thread jonas
I want to ask you again, what you think about such service? Would you buy or sell apps (or paid support) out there and why? If the apps are more then good enough and would spare companies time and there are no better or equal opensource alternatives, then yes I do believe some people might

Re: What editor do you use for .po files?

2009-07-21 Thread Jonas Obrist
Haven't started by i18n yet but rosetta looks good: http://code.google.com/p/django-rosetta/ bittin wrote: > i also use PoEdit =) > > On Fri, Jun 19, 2009 at 11:05 PM, Joshua Russo > mailto:joshua.rupp...@gmail.com>> wrote: > > > I started using PoEdit but it seems to thing that the .po fil

Re: @login_required() dont work

2009-07-23 Thread Jonas Obrist
that should be @login_required def index(request): ... as far as i know, pretty sure your () are the problem Asinox wrote: > Hi guys, im trying to use the login and logout functions of Django, > but my @login_required() dont work, dont redirecto to the login form > and show the view where the

Also-Online Feature

2009-07-25 Thread Jonas Obrist
Is there a builtin way in django to get a list of other users who are currently visiting a website or even a specific part of a website? If not are there any tools that I could use to implement this or do I have to think of a solution from scratch? --~--~-~--~~~---~

Re: IDE for Django and Ext JS

2009-07-28 Thread Jonas Obrist
Maybe a good question would be is there any IDE that supports the django template language? Because I use eclipse (pydev+webtools) but I really dislike it that it complains about my HTML files being invalid because of the django tags. Also a highlighting mode might reduce the amount of errors

Re: Printing a cetain number of characters

2009-08-03 Thread Jonas Obrist
use: {{ object.body|slice:":30" }} When ideas fail wrote: > Hi, If i am using something like {{object.body}} is it possible to > limit the number of characters being printed out. So say you wanted 30 > characters, it would print the 30 and ignore the rest. > > Thanks, > > Andrew > > > --~--~

Re: is Django a good choice for a LAN app?

2009-08-12 Thread Jonas Obrist
In my opinion writing it in django/html/... is a lot easier and faster than doing it in a real python GUI tool. Also you have the networking in your LAN taken care of by the browser. snfctech wrote: > One more question: Any advantage to just using a Python GUI toolkit > instead? > > On Aug 12

Re: is Django a good choice for a LAN app?

2009-08-13 Thread Jonas Obrist
oject to add this capability in the > future tough. > Maybe you should investigate a bit more in the site > (djangoproject.com). > Regards. > > On Aug 12, 4:31 pm, snfctech wrote: > >> Thanks, Jonas. >> >> And do you think Django's ORM will be able to hand

Psyco

2009-08-13 Thread Jonas Obrist
Hi djang-users Is anyone using psyco in django? Does it work and is it useful (as in: do you get great speed improvements)? Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Psyco

2009-08-13 Thread Jonas Obrist
Torsten Bronger wrote: > Hallöchen! > > Jonas Obrist writes: > > >> Is anyone using psyco in django? Does it work and is it useful (as >> in: do you get great speed improvements)? >> > > I've once seen a benchmark indicating considerable imp

Re: Psyco

2009-08-13 Thread Jonas Obrist
Matthias Kestenholz wrote: > On Thu, Aug 13, 2009 at 5:35 PM, Jonas Obrist wrote: > >> Torsten Bronger wrote: >> >>> Hallöchen! >>> >>> Jonas Obrist writes: >>> >>> >>> >>>> Is anyone usin

Re: Psyco

2009-08-13 Thread Jonas Obrist
Igor Sobreira wrote: > > > On Thu, Aug 13, 2009 at 12:35 PM, Jonas Obrist <mailto:ojiido...@gmail.com>> wrote: > > > Torsten Bronger wrote: > > Hallöchen! > > > > Jonas Obrist writes: > > > > > >>

Re: Psyco

2009-08-13 Thread Jonas Obrist
Igor Sobreira wrote: > > > On Thu, Aug 13, 2009 at 2:50 PM, Jonas Obrist <mailto:ojiido...@gmail.com>> wrote: > > [...] > > > > Caching isn't really an options since I only have VPS with very > little > RAM and from readi

mass-updating question

2009-08-13 Thread Jonas Obrist
: thread.forums.allparents.update(postcount += 1, lastpost=post) I'm well aware that += is completely wrong there, it's just to illustrate my idea. Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: if forloop.counter

2009-08-13 Thread Jonas Obrist
ld i do that? > > Thanks > > > > {% ifequal forloop.counter 6 %} ... {% endif %} Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: mass-updating question

2009-08-13 Thread Jonas Obrist
Alex Gaynor wrote: > On Thu, Aug 13, 2009 at 2:51 PM, Jonas Obrist wrote: > >> Hi django-users >> >> I try to do as much as I can in ORM without python looping etc. So I >> wonder if the following code could be done in one update: >> >>

Re: how much python do i need to know to learn/use Django?

2009-08-13 Thread Jonas Obrist
your code will be buggy but that's the way you learn! I learned the basics of python in about a day and 'okay' python skills in about a month of casual coding. Now after a bit more than half a year I'd say I'm rather good at it, only learning from other code and online

Problem running django through fcgi on shared hosting

2009-08-14 Thread Jonas Obrist
tting-django-working-on-bluehost/ No success Jonas --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Problem running django through fcgi on shared hosting

2009-08-14 Thread Jonas Obrist
) I'd seriously suggest a low-end VPS. > They make life even easier. > > On Fri, Aug 14, 2009 at 5:02 PM, Jonas Obrist <mailto:ojiido...@gmail.com>> wrote: > > > I try to get django (1.0.2) to run on a shared hosting (with python > 2.5.2) through fcgi (with

Render template tags together

2009-08-16 Thread Jonas Obrist
ttern) for occurence in templatetag: regex.sub(substitution, occurrence.content) Sort of collecting all tags in a template with that name and render them collectively. Any ideas how I can achieve that with a custom template tag? Jonas --~--~-~--~~~---~--~

Re: Using custom table instead of "user" in django

2009-08-17 Thread Jonas Obrist
Add the folder in the archive to your pythonpath. Add 'auth' to your installed applications Set 'USER_MODEL' in your settings file to the model you use (string). Done. NOTE: I did NOT test this yet! Jonas PlanetUnknown wrote: > Guys, > I have a quick question.

Re: Get results from query depending on another query

2009-08-18 Thread Jonas Obrist
course = Course.objects.filter(group__user=request.user) Chris McComas wrote: > I have a model that has a FK to django.contrib.auth.models Group. I > run a query that gets all the groups that a user is a member of: > > groups = Group.objects.filter(user=request.user) > > Then I want to run a que

Re: Editors of choice

2009-09-07 Thread Jonas Obrist
I use eclipse with PyDev + Web Developement tools (and a bunch of other addons :D) and I really like it. Only thing that bugs me is the lack of a django syntax highlighter but that might be hard to find. --~--~-~--~~~---~--~~ You received this message because you

Re: Amazon S3 for File Uploads

2009-06-13 Thread Jonas Galvez
orm special operations on uploaded files, like video transcoding). I can't release the source, but if you'd like I could probably send you a few snippets privately. --Jonas Galvez --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: django forum

2009-09-20 Thread Jonas Obrist
dijxtra wrote: > Is there a free robust django forum app? Or more precisely, a free and > robust forum app which uses django.contrib.auth for authentication? > > Or should I just try out those several projects enabling django to > access phpBB's user info and use phpBB3? > > > There's django-fo

Need help with file uploads

2009-09-21 Thread Jonas Obrist
ser, attachment=data) where data is the file content. This saved correctly with no errors but the file path (eg attachment.url) doesn't point to the upload_to folder (it points to the root media folder) and the file wasn't created. How could I do that? Jonas --~--~-~--~~---

File storage: Filesystem vs Database

2009-09-22 Thread Jonas Obrist
n the filesystem as actual files? Jonas --~--~-~--~~~---~--~~ 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 unsubscribe from this group

Re: File storage: Filesystem vs Database

2009-09-22 Thread Jonas Obrist
Thanks to both Javiers! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to django-u

licensing question

2009-09-29 Thread Jonas Obrist
n binary form' since basically any redistribution in a digital way is binary. My project will be open source, does that mean I have to ship it with the BSD license or can I leave it away? Jonas --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: licensing question

2009-09-29 Thread Jonas Obrist
Russell Keith-Magee wrote: > > First off - IANAL, so the following lawyering is non-professional > opinion, and doesn't constitute legal advice, etc etc. > > My reading of this is that yes, what you are proposing would be a > violation of the license. You're forking Django to produce a new > produ

django-bbcode

2009-10-21 Thread Jonas Obrist
Hi django-users I wrote a django app called 'django-bbcode' which parses bbcode (or any whatever you want it to) into html (or whatever you want it to). The code is hosted on http://bitbucket.org/ojii/django-bbcode/wiki/Home for all those who are interested. I also wondered if there is any si

issues with the ORM used outside of django

2009-11-17 Thread Jonas Obrist
und on http://bitbucket.org/ojii/oorm/src/. I'd really appreciate any input on why that issue occurs and more importantly, how to possibly fix it. Jonas -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Testing Django applications

2009-12-15 Thread Jonas Obrist
HB wrote: > Hey, > Grails framework offers a huge set of tools to facilitate testing > (unit and integration) > I heard the same thing is true for Rails > Does Django offers the same thing? > Thanks. > > -- > > You received this message because you are subscribed to the Google Groups > "Django use

Re: how to develop cms on django

2010-07-19 Thread Jonas Obrist
a beginners level! I really urge you to use an existing solution, such as ours or another CMS as you can find on the wiki [2]. Jonas [1] http://www.django-cms.org/ [2] http://code.djangoproject.com/wiki/CMSAppsComparison -- You received this message because you are subscribed to the Google

Divio is looking for Django Developers!

2010-07-22 Thread Jonas Obrist
send your application to either me (jonas.obr...@divio.ch) or Simon Zmoos (simon.zm...@divio.ch). Make sure you include your github or bitbucket profile if you have it, so we can have a look at your code. Jonas Obrist [1] www.divio.ch [2] www.django-cms.org -- You received this message becau

CSRF token is missing

2010-08-25 Thread Jonas Geiregat
code. Which is not there. So I looked where django lived by running: import django; django.__file__. Looked in the contrib/comments/templates/comments/form.html file. Inside that file the I'm seeing " {% csrf_token %}" So my question is; Why isn't the csrf_token generate

Re: How to store and retrieve objects to/from session?

2010-08-28 Thread Jonas Obrist
Have you tried to just dump the object into the session? On Aug 28, 2010 12:41 PM, "Andy" wrote: > I know I can store simple key/value pairs to session. Is it possible > to store entire objects to session? > > I want to enable un-logged-in users to submit form data. After the > form is submitted,

Query overhead or not ?

2010-08-30 Thread Jonas Geiregat
y of which tags are used the most. I'm wondering if this is a good idea ? Since if I have 1000 tags this would require 1000 queries just for one simple tag cloud. Is there a better way of solving this without adding an extra count field to the Tag model. Regards, Jonas Geiregat jo.

Re: Query overhead or not ?

2010-08-31 Thread Jonas Geiregat
;m wondering if this is a good idea ? Since if I have 1000 tags this would >> require 1000 queries just for one simple tag cloud. >> Is there a better way of solving this without adding an extra count field to >> the Tag model. > > Hi Jonas, > > your gut feeling

Re: Query overhead or not ?

2010-09-01 Thread Jonas Geiregat
I look at aggregation and annotation but I don't think It's possible to solve this by using any of those two systems. Or am I overlooking something ? Op 31-aug-2010, om 13:09 heeft Jonas Geiregat het volgende geschreven: > Thanks for your advise. I'm short of time righ

Re: fetching values from model

2010-09-01 Thread Jonas Geiregat
com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > Met vriendelijke groeten, Jonas Geiregat jo...@geiregat.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: fetching values from model

2010-09-01 Thread Jonas Geiregat
about? > > On Sep 1, 6:02 pm, Jonas Geiregat wrote: >> You don't write Python code inside your template file. That's one of the >> basic django template rules. >> You can pass values from your views to your template and show them there. >> Or generate the H

Re: Query overhead or not ?

2010-09-01 Thread Jonas Geiregat
Tag.objects.values('name').annotate(times_used=Count('post__tags')) That's the solution! Op 1-sep-2010, om 15:00 heeft Jonas Geiregat het volgende geschreven: > I look at aggregation and annotation but I don't think It's possible to solve > this by u

Re: {% csrf_token %} template tag not outputting the hidden field

2010-09-01 Thread Jonas Geiregat
I had the same problem some day's ago. Did you add the context_instance parameter in the render_to_reponse function call. It's needed for CSRF to work. For example: return render_to_response('blog/index.html', {'posts': posts}, context_instance=RequestContext(req

django-1.2.1 on ubuntu

2010-10-03 Thread Jonas Geiregat
to version 1.2.1 on the ubuntu box. Can I manually install version 1.2.1 without updating apache2 or mod_wsgi ? Or are there any ubuntu .deb packages available ? Kind regards, Jonas Geiregata jo...@geiregat.org -- You received this message because you are subscribed to the Google Groups &qu

postgres CREATE DATABASE from django

2010-11-06 Thread Jonas Obrist
ves me a 'CREATE DATABASE cannot run inside a transaction block' postgres error. Now if I call leave_transaction_management before I do the query, I get a Django TransactionManagementError with "This code isn't under transaction management". Does anyone have a smart idea how I

Generic relations

2010-11-17 Thread Jonas Geiregat
n [4]: g = GenericPost(content_object=a) In [5]: g.save() In [6]: GenericPost.objects.all() Out[6]: [, , , ] Why is it that I have 4 objects already when I only have created one ? And how do I access that particular object by using the GenericPost model ? Regards, Jonas Geiregat jo...@geiregat

Re: Generic relations

2010-11-17 Thread Jonas Geiregat
cPost.objects.get(pk=1).content_object.content --- AttributeErrorTraceback (most recent call last) /Users/Jonas/Webdesign/genericv/ in () AttributeError: 'NoneType' object has no attribute

Re: Generic relations

2010-11-18 Thread Jonas Geiregat
That was it! After running: ./manage.py sqlclear foo | ./manage.py dbshell && ./manage.py syncdb it works! So something in my db was inconsistent! Thanks! Op 18-nov-2010, om 09:57 heeft Marc Aymerich het volgende geschreven: > On Thu, Nov 18, 2010 at 12:00 AM, Jonas Geiregat wrote

Re: Using foreignkey data as a primary key

2010-11-18 Thread Jonas Geiregat
ld(Tag) > >def __unicode__(self): >return self.tag > > > Should I be using OneToOne field or ForeignKey or neither and some > other mechanism? Met vriendelijke groeten, Jonas Geiregat jo...@geiregat.org -- You received this message because you are subscribed to

Re: how to hide a field on

2010-11-18 Thread Jonas Geiregat
u are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group

Generic relation overflows the maximum recursion depth

2010-11-19 Thread Jonas Geiregat
he problem occurs when creating a Post model and saving it: p = Post(title="foobar", ) p.save() I get the following error message: RuntimeError: maximum recursion depth exceeded The problem should be located in the post_save_callback function. Kind regards, Jonas Geiregat jo...@ge

Re: Not main content on site - how to?

2010-11-21 Thread Jonas Geiregat
m. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > Met vriendelijke groeten, Jonas Geiregat jo...@geiregat.org -- You received this mes

css templates

2010-12-06 Thread Jonas Geiregat
ted within the django framework ? Met vriendelijke groeten, Jonas Geiregat jo...@geiregat.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from th

Making a (part of a) django website downloadable

2010-01-05 Thread Jonas Obrist
hon/django module which helps with this? Jonas -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@g

Re: Django or CMS.

2010-02-05 Thread Jonas Obrist
Have a look at django-cms [1], it should be able to do what you need. And if there's some extra functionality you need it's very easy to program it. [1] http://www.django-cms.org Rob B (uk) wrote: The design agency I work for are looking into CMS options. Being a Django man myself I'm hopin

Re: Installation without root access

2010-02-11 Thread Jonas Obrist
orbital_fox wrote: Is there a way and guides on how to install django without having root access on a system? What are the requirements? With regards, Orbital Fox This is possible but not very nice. I run some sites off a shared hosting. You do need shell access though. Jonas -- You

Re: remote desktop control using Django

2010-02-16 Thread Jonas Obrist
If you're new to web apps I strongly suggest you'll have a go at something easier than what you plan. Generally you could do what you intend with django, since the crazy stuff is going to be in the frontend (flash?). -- You received this message because you are subscribed to the Google Groups

ANN: django-multilingual-ng

2010-02-19 Thread Jonas Obrist
tation and more testing. I've tested it in my project and I can't find any issues. If you have a look at it and maybe even use it, please give me your feedback and especially report any bugs you encounter. Jonas Obrist [1] http://code.google.com/p/django-multilingual/ [2] http://py

Re: Any CRM based on django?

2010-02-19 Thread Jonas Obrist
Not sure if this is what you're looking for but just searching for django-crm on google got me http://code.google.com/p/django-crm/ Massimiliano della Rovere wrote: At work we are planning move from Sugar CRM PRO to something else free. I'd love moving to something python based, but it seems th

Re: noob: cyclic import issue

2010-03-29 Thread Jonas Obrist
On 03/29/2010 10:28 AM, vamsy krishna wrote: hi...am very new to django and am having some problem with my code... say i've two modules...mod1 n mod2...n views in both modules have certain generic functions which i need to import from each other...as in (in views.py of mod1) from mod2.views im

Re: newforms validator_list

2008-02-04 Thread Jonas Pfeil
model by ModelForm or form_from_instance()/form_from_model(). Cheers, Jonas --~--~-~--~~~---~--~~ 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 u

Re: custom model field validation

2008-02-08 Thread Jonas Pfeil
s like so: def formfield(self, **kwargs): defaults = {'regex':r"^[A-Za-z][1-9][1-7][0-9]$"} defaults.update(kwargs) return super(models.CharField, self).formfield(form_class=forms.RegexField, **defaults) Cheers, Jonas --~--~-~--~~---

Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
mething simple that I overlooked... but I tried it about a million times. Cheers, Jonas --~--~-~--~~~---~--~~ 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

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

Re: Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
nto debugging, sadly. > My bet is that the last problems are human error, but I'd like to > understand them to see if we can bullet-proof this a bit more. Thank you for your effort, Jonas --~--~-~--~~~---~--~~ You received this message because you are subs

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 Goo

Re: How to call a secure url?

2008-04-20 Thread Jonas Oberschweiber
t have any experience with this SSL middleware, but the snippet itself says that you should rather use this: http://www.djangosnippets.org/snippets/85/ Regards Jonas On Mon, Apr 21, 2008 at 3:10 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have a page on my site where custom

Re: How can I get full path ( Include QUERY_STRING )?

2008-05-06 Thread Jonas Oberschweiber
>From what I can see, request.get_full_path() seems to be what you want. Details here: http://www.djangoproject.com/documentation/request_response/ Regards Jonas 2008/5/6 Davide.D <[EMAIL PROTECTED]>: > > example: > http://127.0.0.1:8000/search/?q=keyword > > &qu

Re: Unique Users Per Site in 'users' & 'sites' Frameworks

2008-05-07 Thread Jonas Oberschweiber
the only way to implement this? Regards Jonas On Wed, May 7, 2008 at 12:06 PM, Brian <[EMAIL PROTECTED]> wrote: > > I'm building an application where each customer has an account in the > system. That account has multiple users in it, each with their own > username and passwo

Re: modifying a queryset in a generic view wrapper

2008-06-15 Thread Jonas Oberschweiber
ution, but it's how I'd do it. Regards Jonas On Mon, Jun 16, 2008 at 6:21 AM, joshuajonah <[EMAIL PROTECTED]> wrote: > > even using a new list object as the queryset doesn't render it: > > def blog_post(request, year, month, day, slug): > >q

Re: ModelForms

2008-06-16 Thread Jonas Oberschweiber
AFAIK querysets are always cached. On Tue, Jun 17, 2008 at 7:06 AM, emont88 <[EMAIL PROTECTED]> wrote: > > I'm running into an interesting problem with ModelForms. > I have a blogging app that handles multiple blogs, which makes things > tricky with categories, because each category needs to belo

Re: admin-like list views

2008-06-16 Thread Jonas Oberschweiber
Hi, pagination is done by the object_list generic view. You'd have too implement the filter links and search yourself, though. On Mon, Jun 16, 2008 at 11:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hello, > i'd like to have a view with behaves pretty much the same as the list > views

Re: ModelForms

2008-06-16 Thread Jonas Oberschweiber
ious > user's blog if I just logged out and logged in. > If form.category.queryset is showing the right thing when printed to > the console, shouldn't that be exactly what ends up in the html form? > > On Jun 17, 1:37 am, "Jonas Oberschweiber" <[EMAIL PROTECTE

Re: How do I include a link in the emails that I send out?

2008-06-23 Thread Jonas Oberschweiber
Hi, as far as I know you have to set the correct MIME-type in your subject. This Wikipedia article should be a good start: http://en.wikipedia.org/wiki/MIME On Tue, Jun 24, 2008 at 3:51 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following line in my code: > > message = "This is

Re: django as a platform for a commercial SaaS project?

2007-03-25 Thread Jonas Maurus
ASP.Net is a lot of fun coding. Django is very elegant, but that also means most of the buzzwords are missing. (something like Displaytag for JSP however, is bound to happen in the next 3 months :-) ). That said, we're using Django extensively now alongside PHP and Java and it

Re: Database migration

2007-03-26 Thread Jonas Maurus
to look at the errors that PostgreSQL will undoubtedly spit in your general direction and fix them. Good luck, Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Nested Sets for trees - any models been made before?

2007-03-27 Thread Jonas Maurus
I jump in. > > Many Thanks > > Nathan Or you use this http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal Best regards Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Storing milliseconds

2007-03-27 Thread Jonas Maurus
. > > Thanks, > Jeff I find that strange, because Postgres doesn't natively support a column-type "datetime". Nevertheless, you can use a timestamp column for millisecond resolution http://www.postgresql.org/docs/8.2/intera

Free blog application

2007-05-26 Thread Jonas Melian
Is there any FLOSS blog system using Django? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, s

DjangoCon Europe 2012 Early Bird registration and Call For Papers

2012-03-20 Thread Jonas Obrist
.djangocon.eu If you have any questions or problems, don't hesitate to contact us. Best regards, Jonas Obrist, Co-Chair DjangoCon Europe 2012 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

mocking out a Model

2012-04-14 Thread Jonas Geiregat
I'm also wondering if it's possible to inspect MockedHouse to see if it has for example some tags added to it. Any help is appreciated, Jonas. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: mocking out a Model

2012-04-15 Thread Jonas Geiregat
>> @patch('apps.market.models.House') > > Is create house in apps.market.models, or is it somewhere else? If > it's somewhere else, mock it relative to that file eg: > @patch('apps.some_file.House') def create_house can be found in apps/deps/house_factory.py Inside house_factory I ' from apps.m

Slow page in admin

2012-04-25 Thread Jonas Ghyllebert
I'm new to Django and I would like to apologize if it's been asked before. I have two models *Region *and *Zip*. In the admin system, Zip is an inline model in Region Whenever i want to add a Region it shows directly 25 listboxes with zips. This however takes a long time to load the page and re

  1   2   3   >