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
le my multiple DB >> connections, with read/write fields from different DB producs/ servers >> on the same view (most of which will hopefully be ODBC compliant, but >> some might not)? >> >> On Aug 12, 11:32 am, Jonas Obrist wrote: >> >> >>> In

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. To post to th

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
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: for parent in thread.forum.allparents.all(): parent.postcount += 1 parent.lastpost = post parent.save() Basically do something like: threa

Re: if forloop.counter

2009-08-13 Thread Jonas Obrist
When ideas fail wrote: > Hello, i know you can have things like {% if forloop.last %} > but is it possible to have an if statement that matches the value of a > forloop counter > so it would be like: > > {% if forloop.counter = 6 % } > > or similar and how could i do that? > > Thanks > > > > {%

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
snfctech wrote: > I currently know zero Python and want to start a project with Django > ASAP. I've got the opportunity through my work to either take a 5-day > Python bootcamp or a Django bootcamp - not both. > > I don't anticipate having a whole bunch of time to brush up on Python > before the

Problem running django through fcgi on shared hosting

2009-08-14 Thread Jonas Obrist
I try to get django (1.0.2) to run on a shared hosting (with python 2.5.2) through fcgi (with flup 1.0.2). I've written a very simple app to test this: /myproject/settings.py: http://dpaste.com/80556/ /myproject/urls.py: http://dpaste.com/80557/ /myproject/home/views.py: http://dpaste.com/80558

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
hi django-users I try to improve the performance of my web app and one of the things I want to do is render all occurrences of a certain tag at once instead of each on its own. The reason is simple: Each template tag loops over a series of regex pattern out of a database which it has to compil

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

2009-08-17 Thread Jonas Obrist
Here's what I did: I took the built in auth system and changed it a bit, or to be more precise I changed all imports within auth (because I moved it within the pythonpath) and edited models.py: http://dpaste.com/81651/ Whole code: http://www.ojii.ch/auth.tar.gz If you wanna use it: Add the

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: 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
Hi django-users I try to figure out how to upload files using django. I have two models which are involved here: Post, which has a user and content. Attachment, which has a filefield (attachment), a user and a FK to Post. This is how it should work: Step 1: The form is displayed with

File storage: Filesystem vs Database

2009-09-22 Thread Jonas Obrist
Hi django-users I wanna store files (attachments to forum posts) outside the MEDIA_ROOT to restrict file downloads to registered users. So I'd have to server them through django instead of apache. What would be the better way to do this: Store them in a the database or store them in the filesy

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
Hi django-users I have a question about the license Django is released under (BSD). Or to be more precise about: 3. Neither the name of Django nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior writte

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
Hi fellow djangonauts A while back I isolated the django ORM to run completely without all the rest of django, to be able to use it in EventScripts (a plugin for the source game server (counter strike and others) allowing to develop plugins in python). It worked well for me and my tests were al

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

Making a (part of a) django website downloadable

2010-01-05 Thread Jonas Obrist
Hello django-users I try to make a part of my website downloadable. Namely it's a wiki-like app for documentation of an open source project, for which I would like to offer downloadable copies. How would I pack a part of my app into a zipfile/tarfile? What I tried so far is just render the p

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: how to develop cms on django

2010-07-19 Thread Jonas Obrist
On 06/30/2010 10:57 AM, bruno desthuilliers wrote: On 29 juin, 12:29, samie wrote: sir i am a beginner in python and django.. i want develop a content management system using django.. plz help me wht shld i do from where shld i start.. I think the very first thing to do would be to

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

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,

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 rece

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

postgres CREATE DATABASE from django

2010-11-06 Thread Jonas Obrist
Hi everyone I know what I try to do sounds like something one shouldn't, but I have my reason [1]... I want to CREATE DATABASE from django (in a request/response cycle) on postgres, so I do connections['default'].cursor().execute("CREATE DATABASE somename"). That gives me a 'CREATE DATABASE canno

ANN: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-24 Thread Jonas Obrist
also improved the readability and maintainability of the Django-CMS codebase to make it easier for new developers to get around. * And lots more! Wishing you a merry Christmas in the name of the Django-CMS core developers team, Jonas Obrist -- You received this message because you a

Re: RE: The Django-CMS 2.1 Release Candidate 1 has been released!

2010-12-26 Thread Jonas Obrist
Hi fred There's a lot of sites running it actually, for a list go to http://www.django-cms.org/sites/, otherwise I can tell you that companies such as PBS, National Geographic, Vodafone and a lot more use it. If by example site you mean a site you can play around on, we plan to launch a full

Re: Full text indexing in small site

2010-12-26 Thread Jonas Obrist
Have a look at haystack [1]. What engine you use pretty much depends on what you can install, for your small site even whoosh should be enough. Jonas [1] http://haystacksearch.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

ANN: The django CMS 2.1 Release Candidate 2 has been released!

2010-12-31 Thread Jonas Obrist
The second Release Candidate for the Django-CMS 2.1 was just released and is ready for testing. Please keep in mind that this is a release candidate, and not a final release yet! Download: http://pypi.python.org/pypi/django-cms/2.1.0.rc2 Documentation: http://django-cms.rtfd.org Source: https:/

Re: django cms without django admin

2011-01-10 Thread Jonas Obrist
Hi As already mentioned, this belongs to http://groups.google.com/group/django-cms?hl=en But let me just quickly say that there's no sane way to get the CMS running without admin. The whole point in having a CMS is to be able to edit content easily, for which you need admin. I have no idea wh

Django CMS 2.1 Release Candidate 3 was just released!

2011-01-14 Thread Jonas Obrist
mprovements. Please help testing this third release candidate and enjoy our django CMS. In the name of the whole django CMS core developer team, Jonas Obrist -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

django CMS 2.1 final was just released!

2011-01-26 Thread Jonas Obrist
around on a fresh django CMS instance. The demos are generously hosted by ep.io. In the name of the django CMS developer team, Jonas Obrist -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

django CMS 2.1.1 released!

2011-02-09 Thread Jonas Obrist
We just released django CMS 2.1.1 to fix an issue brought to light by Django 1.2.5. After todays Django 1.2.5 security release [1], the django CMS AJAX requests stopped working, due to lacking CSRF protection. This critical issue has now been fixed in the 2.1.1 release. Changes in this versi

django CMS 2.1.2 released

2011-02-16 Thread Jonas Obrist
We just released django CMS 2.1.2 to fix a CSRF issue occuring in some browser with django CMS 2.1.1. This release fixes the CSRF issues happening on Ajax requests in older Internet Explorers (and according to some reports also other browsers) as well as a CSRF issue when adding embbeded plugi

ANN: Security release issued for the django CMS

2011-02-22 Thread Jonas Obrist
details please refer to the blog post here: https://django-cms.org/en/blog/2011/02/22/security-releasse-issued/ Jonas Obrist -- 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@googlegrou

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

Re: Where are the women?

2012-04-25 Thread Jonas Obrist
ught that it is unnecessary, as everything usually mentioned in a code of conduct is covered by Swiss law anyway (especially discrimination). Jonas Obrist On Wednesday, April 25, 2012 8:28:07 PM UTC+2, Katie Cunningham wrote: > > If you want to get more women to a conference, a few things have

Django CMS 2.3 Released!

2012-06-29 Thread Jonas Obrist
Today I am very excited that we just released Django CMS 2.3, with Django 1.4 support. You can read the release notes at Django at http://bit.ly/django-cms-23. Best regards, Jonas 'ojii' Obrist -- You received this message because you are subscribed to the Google Groups "Django users" group.

DjangoCon Europe 2012: June 4-6, in Zürich, Switzerland

2011-12-20 Thread Jonas Obrist
see you in Zürich in June! Yours, Jonas Obrist [1] http://www.stadionletzigrund.ch/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/WfIR6rhGBlw

Re: Django CMS

2011-12-27 Thread Jonas Obrist
Hi there, if you're asking about django CMS (https://django-cms.org), you should use the proper mailing list to ask questions: https://groups.google.com/forum/#!forum/django-cms Also, I do not fully understand your questions. Could you maybe try to explain a bit better what you're trying to ach

Re: Django CMS and django-admin-tools are together?

2011-12-27 Thread Jonas Obrist
"but I read that django-admin-tools is one of django-cms apps." that is incorrect. The initial design and idea started on our blog [1] but it was never implemented by us, so someone else did and thus django-admin-tools was created. [1] https://www.django-cms.org/en/blog/2009/10/29/dashboard-pro

django CMS security release issued

2012-12-04 Thread Jonas Obrist
We just issued a security release for the django CMS to fix a vulnerability in the page_attribute template tag, which allowed admins with restricted permissions to elevate their permissions through XSS. All django CMS users are encouraged to update their django CMS installations immediately. Read