Re: Best way to pass data to a HttpResponseRedirect?

2007-07-27 Thread patrick k.
we are using a context_processor. e.g., the view for a login-page could look like this: if everythins is ok: request.session['messages'] = ['message', 'You are logged in.'] return HttpResponseRedirect(referer) else: messages =

Re: html sanitizers

2007-07-13 Thread patrick k.
it´s easy to write a customized sanitizer using beautifulsoup. http://www.crummy.com/software/BeautifulSoup/ 1) place beautifulsoup.py somewhere in your pythonpath 2) build your sanitizer and save it somewhere on your pythonpath in my case it´s called eatMe and looks like this:

Re: Beginner's question (take two)

2007-07-10 Thread patrick k.
there was a discussion about this issue a while ago - adrian said that he wants to add the possibility to translate app_names (don´t know if this feature has been added though). changing index.html is a rather uncomfortable solution from my point of view. thanks, patrick Am 10.07.2007 um

Re: caching and authentication

2007-07-07 Thread patrick k.
Am 07.07.2007 um 19:36 schrieb Honza Král: > On 7/7/07, patrick k. <[EMAIL PROTECTED]> wrote: >> >> >> Am 07.07.2007 um 02:13 schrieb Jeremy Dunck: >> >>> >>> On 7/6/07, patrickk <[EMAIL PROTECTED]> wrote: >>>> >>>&

Re: caching and authentication

2007-07-07 Thread patrick k.
Am 07.07.2007 um 02:13 schrieb Jeremy Dunck: > > On 7/6/07, patrickk <[EMAIL PROTECTED]> wrote: >> >> when having a header where the username and a logout-button is >> displayed, how do you cache this page/view? > > There's a CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting if you want to only > do

Re: Attributes for ManyToMany

2007-07-06 Thread patrick k.
here it is: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/ m2m_intermediary/models.py Am 06.07.2007 um 11:03 schrieb Thomas Güttler: > > Hi, > > How can you add attributes to ManyToMany Relations? > > Given the example: >

Re: Attributes for ManyToMany

2007-07-06 Thread patrick k.
usually, if you want to have additional fields with a m2m-relation you have to use an intermediary table with a foreignkey (e.g. with edit-inline). if this page is working, there´s an example: http://www.djangoproject.com/documentation/models/ howerver, if you want to have the page-number

Re: newforms view-question

2007-06-25 Thread patrick k.
7 um 16:51 schrieb Malcolm Tredinnick: > > On Mon, 2007-06-25 at 16:41 +0200, patrick k. wrote: >> thanks malcolm. >> >> get_initial_data should be defined in the form, I think. because the >> form doesn´t necessarily relate to a model, so the model is probably &g

Re: newforms view-question

2007-06-25 Thread patrick k.
thanks malcolm. get_initial_data should be defined in the form, I think. because the form doesn´t necessarily relate to a model, so the model is probably the wrong place. I´m a bit surprised that this isn´t easier/cleaner with newforms. nevertheless, looks a bit better now: def

Re: newforms, unicode and umlauts

2007-06-22 Thread patrick k.
thanks for your answer. I´ve been trying to solve this for about 8 hours ... finally giving up. so, I´ll switch to the unicode-branch. Am 22.06.2007 um 02:02 schrieb Malcolm Tredinnick: > > On Thu, 2007-06-21 at 16:23 +0200, va:patrick.kranzlmueller wrote: >> the code below does not give a

Re: How is profile_callback in django-registration supposed to work?

2007-06-19 Thread patrick k.
, status="1") new_user_profile.save() hope that helps, patrick Am 19.06.2007 um 20:13 schrieb [EMAIL PROTECTED]: > > Patrick, could you share your def profile_callback, or at least the > important parts of it. I'm still not getting anything created. > > On Ju

Re: How is profile_callback in django-registration supposed to work?

2007-06-19 Thread patrick k.
I´m using profile_callback=True and then def profile_callback(user) ... it works. patrick Am 19.06.2007 um 20:02 schrieb [EMAIL PROTECTED]: > > I've set: > def create_inactive_user(self, username, password, email, > send_email=True, profile_callback=create_site_user): > > also tried

Re: Survey: FileBrowser and FancyUpload

2007-06-18 Thread patrick k.
thanks for the feedback so far. I´m just waiting, if there´s more feedback. so far, it´s very clear that the integration of fancyupload is disliked. thanks, patrick Am 16.06.2007 um 17:54 schrieb itsnotvalid: > > By the way I like the idea of Gmail upload methods too. > But a flash plugin

Re: FileBrowser v 2.0

2007-06-11 Thread patrick k .
n. with out running it via > the admin side. > > On Jun 11, 9:01 am, "patrick k." <[EMAIL PROTECTED]> wrote: >> what exactly do you mean by "django app"? >> do you mean that it could be installed into /django/contrib/? >> >> if yes, what´

Re: FileBrowser v 2.0

2007-06-11 Thread patrick k.
? patrick Am 11.06.2007 um 09:47 schrieb oliver: > > hi patrick, > > could your filebrowser be also made as a django app? I think that > would be pretty handy or? > > > > On Jun 10, 10:41 am, patrick k. <[EMAIL PROTECTED]> wrote: >> image-editing with picnik is

Re: FileBrowser v 2.0

2007-06-10 Thread patrick k .
. patrick Am 08.06.2007 um 08:38 schrieb patrick k.: > > integration of basic image-editing with SNIPSHOT is done. > just set USE_SNIPSHOT to True in fb_settings and change the > SNIPSHOT_CALLBACK_URL and you´re ready to go. > > NOTES: > ### be aware that it´s not poss

Re: FileBrowser v 2.0

2007-06-08 Thread patrick k .
integration of basic image-editing with SNIPSHOT is done. just set USE_SNIPSHOT to True in fb_settings and change the SNIPSHOT_CALLBACK_URL and you´re ready to go. NOTES: ### be aware that it´s not possible to edit pictures in the popup- window. ### security issue: because of snipshots

Re: [django-users] FileBrowser v 2.0

2007-06-07 Thread patrick k.
Am 07.06.2007 um 19:24 schrieb Simon Drabble: > On Thu, 7 Jun 2007, patrickk wrote: > >> >> I´ve just released a new version of the filebrowser: >> http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki >> >> things to come: >> ### i18n >> ### integration of snipshot and picnik for basic

Re: best practice for portal-like pages?

2007-06-07 Thread patrick k.
: > parents = '' > parent = self.parent > while parent: > parents = '%s :: %s' % (parent.title, > parents,) > parent = parent.parent > return '%s%s (%s)' % (parents, > self.ti

Re: best practice for portal-like pages?

2007-06-07 Thread patrick k.
, patrick Am 03.06.2007 um 19:28 schrieb oggie rob: > > Ahh, yeah, I suppose so! I didn't really think the rendered text > through, and you're right that it has the same flexibility. > > -rob > > On Jun 3, 2:40 am, "patrick k." <[EMAIL PROTECTED]> wrote

Re: best practice for portal-like pages?

2007-06-02 Thread patrick k.
what´s the advantage of including the sub-templates in the template instead of rendering them in the view? rendering the templates in the view seems to be a bit more flexible when it comes to caching, I guess. besides, a custom entry could have its own specific template - so, I ´m not sure

Re: profiling django / import error: no module named profile

2007-05-24 Thread patrick k.
thanks david. it´s working now (although I´m having problems interpreting the stats, but that´s another question). for everyone who´s reading this, here´s more about the python- profiler on debian: http://mail.python.org/pipermail/tutor/2005-March/036677.html thanks, patrick Am 24.05.2007

Re: offset without limit: slicing behaviour

2007-05-17 Thread patrick k.
answering myself: it still works, but allow_empty has to be false when using generic views. patrick. Am 17.05.2007 um 21:16 schrieb patrickk: > > before doing a django-update today, this has been working: > > {% for object in object_list|slice:"0::3" %} > ... left column > > {% for object

Re: Announcing django_xmlrpc

2007-05-14 Thread patrick k.
d /before/ the > closing quote instead of after it. > > If that doesn't fix it, let me know. > > Cheers, > > Graham > > On May 14, 4:39 pm, "patrick k." <[EMAIL PROTECTED]> wrote: >> INSTALLED_APPS = ( >> 'django.contrib

Re: Announcing django_xmlrpc

2007-05-14 Thread patrick k.
uld you post the INSTALLED_APPS section of your settings.py here for > me? > > Cheers, > > Graham > > On May 14, 2:54 pm, "patrick k." <[EMAIL PROTECTED]> wrote: >> 1. no error when importing from the shell, if django.django_xmlrpc is >> NOT i

Re: Announcing django_xmlrpc

2007-05-14 Thread patrick k.
package > somewhere else in your PYTHONPATH rather than under the Django > directory. > > Thanks in advance, > > Graham > > On May 14, 8:59 am, "patrick k." <[EMAIL PROTECTED]> wrote: >> thanks for the code, graham. >> >> I tried to install

Re: Announcing django_xmlrpc

2007-05-14 Thread patrick k.
thanks for the code, graham. I tried to install django_xmlrpc as described on the google-site. I did the checkout to my django-directory and added django.django_xmlrpc to the installed apps. when I start the dev-server I get the following error-message: AttributeError: 'module' object has no

Re: complex data retrieval?

2007-05-02 Thread patrick k.
Am 02.05.2007 um 18:43 schrieb [EMAIL PROTECTED]: > > You didn't post your full model code ... I didn't see anything about > auditoriums in it :) ... can you post the relevant part of your model > for that? sorry, I used the term "auditorium" for better understanding - nothing about that in

Re: Index in admin

2007-04-09 Thread patrick k.
this question has been raised previously. if you search the mailing- list you will find some "answers". look for "move up/move down" ... if I remember this right, the answer was that this is "out of the scope" of django. you´ll also find some code here: models.py: http://dpaste.com/hold/4898/

Re: Django FileBrowser

2007-03-13 Thread patrick k.
c.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/ > fb_2.jpg > > I wondering why? > > > On Mar 13, 6:35 pm, "patrick k." <[EMAIL PROTECTED]> wrote: >> before you click on "make directory", do you see the directory- >> listing like th

Re: Django FileBrowser

2007-03-13 Thread patrick k.
before you click on "make directory", do you see the directory- listing like this: http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg did you follow step 6? it seems that the urls aren´t configured. patrick Am 13.03.2007 um 17:14 schrieb Mary: > > I would like to use

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread patrick k.
. therefore, you may search the tinymce forum for more details. Am 02.03.2007 um 23:16 schrieb Dirk Eschler: > On Freitag, 2. März 2007, patrick k. wrote: >> we´re also using more than one tinymce instance and we don´t have any >> problems. >> could you give more details about you

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread patrick k.
we´re also using more than one tinymce instance and we don´t have any problems. could you give more details about your specifications, e.g. how do you init tinymce? patrick. Am 02.03.2007 um 16:48 schrieb Dirk Eschler: > > Hi, > > i'm using the Django filebrowser together with TinyMCE in

Re: direct_to_template, extra_context

2007-02-28 Thread patrick k.
thanks a lot. that´s working. patrick Am 27.02.2007 um 18:24 schrieb Joseph Kocherhans: > > On 2/27/07, va:patrick.kranzlmueller <[EMAIL PROTECTED]> > wrote: >> >> from django.conf.urls.defaults import * >> >> urlpatterns = patterns('', >> (r'^stars/',

Re: podcast-feed

2007-02-21 Thread patrick k.
thanks. that´s exactly what I was looking for. patrick. Am 20.02.2007 um 21:06 schrieb [EMAIL PROTECTED]: > > I did it, but not using the syndication. I just use a generic list > view and point to a template to build the xml. Not hard at all. Here's > my template: > > >

Re: order_with_respect_to Revisited!

2007-01-08 Thread patrick k.
I did something like that, but it´s not very generic: see http://groups.google.com/group/django-developers/browse_frm/ thread/dc0e4a9d6ad02ea3/ patrick Am 08.01.2007 um 10:34 schrieb [EMAIL PROTECTED]: I see quite a few posts on the elusive "order_with_respect_to" meta attribute. I

Re: Ordering flatpages?

2006-12-22 Thread patrick k.
I´ve posted a proposal recently, see http://groups.google.com/group/django-developers/browse_frm/thread/ dc0e4a9d6ad02ea3/ It´s currently not working "out-of-the-box", but we use it for different sites and implementation is easy. All you need is an IntegerField called "position". If

Re: custom manipulator in admin

2006-12-20 Thread patrick k.
do it like in any other application: custom view, custom template, change urls in the custom view, you could use a changemanipulator for your data and a dict for your additional data. for the template: just copy change_form.html and add your extra_data. the view looks like this: def

Re: How to hack admin interface?...and should I?

2006-12-18 Thread patrick k.
hmm, I´ve never used a custom manager before. most of the "hacking" stuff we do is about javascript and templates. sorry, but I´m not able to help with this problem. patrick Am 18.12.2006 um 20:09 schrieb Picio: > > Patrick please, can you put an eye also here? > >

Re: How to hack admin interface?...and should I?

2006-12-18 Thread patrick k.
Am 18.12.2006 um 11:30 schrieb Kenneth Gonsalves: > > > On 18-Dec-06, at 3:42 PM, [EMAIL PROTECTED] wrote: > >> The admin interface is just that, an interface for administration. If >> you need something beyond that you should keep it outside of it. I >> would give it a thumbs down on trying to

Re: alternatives to edit_inline

2006-12-14 Thread patrick k.
I´m also interested in this extension. does anyone has some information? thanks, patrick Am 13.12.2006 um 23:35 schrieb Justin: > > It looks like this edit_external option may be what you're looking > for: > http://code.djangoproject.com/ticket/1476 > > Does anyone know if this enhancement

Re: Admin CSS files

2006-12-11 Thread patrick k.
sorry, that´s a misunderstanding. the styles are not _part_ of the filebrowser ... Am 11.12.2006 um 19:11 schrieb [EMAIL PROTECTED]: > > Thanks Patrick! > I have used the filebrowser on a couple of projects, but I've never > applied the styles to the rest of my applications. > > Still, It'd be

Re: Customising Admin

2006-12-11 Thread patrick k.
Am 11.12.2006 um 16:20 schrieb spako: > > i'm using django.contrib.admin for the cms of the site i am building. > > there are a bunch of things i want to do with the cms that i think > might be possible, i've just not found much documentation for this > addon, these things include: > > *

Re: Admin CSS files

2006-12-11 Thread patrick k.
it´s not really a different style. it´s more a cleanup of smaller issues (like date/time-fields, edit_inline ...). generally, a cleaner look (in my view) because stuff is in grid. some screenshots are here: http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki patrick Am 11.12.2006 um

Re: General File Upload Questions.

2006-11-30 Thread patrick k.
Am 30.11.2006 um 14:26 schrieb Paul Childs: > > I have been investigating file uploads in general and also with Django > in mind. This thread gave me a place to start: > http://tinyurl.com/ymzmds >

Re: offtopic: delete *.pyc from subversion

2006-11-29 Thread patrick k.
hmm, that doesn´t really change anything. when I do "svn diff" the pyc-files are still listed. guess I have to delete that files from the repository first. right? thanks, patrick Am 29.11.2006 um 18:42 schrieb Rob Hudson: > > Or tell Subversion to ignore them. > > You should have a file:

Re: Retrieve Password

2006-11-29 Thread patrick k.
not possible, I think. solutions: 1. send the password before you save the user 2. store the raw password somewhere (not so good) patrick Am 29.11.2006 um 19:50 schrieb Clint74: > > Hi, > > I need to send the password to the user(email), but how recover the > raw > password once the

Re: basic model with user foreign key.

2006-03-12 Thread patrick k
e.g. from django.models import auth owner = meta.ForeignKey(auth.User) ... that works for me. > > from django.core import meta > from django.models.auth import users ??? > > class Recette(meta.Model): > slug = meta.SlugField("Slug", prepopulate_from=('nom',) ,unique=True, > blank=True) > nom

Re: problem getting the admin to work (in tutorial)

2006-03-09 Thread patrick k
try to set the collations of your database manually (e.g. using cocoamysql on osx), using "utf 8". hope that helps, patrick > > i have been running through the tutorial and everything has been > running fine.. (running macosx).. > > i found my first problem that i have not been able to

Re: Dreamhost - agh!

2006-03-02 Thread patrick k
again, from one of my many discussions with dreamhost. dreamhost says: "Currently demand for django is not very high. If the demand picks up we will likely add direct support for it. This is why we added Ruby on Rails support." "It (Django) is currently not installed by default, again, because

Re: order_with_respect_to ???

2006-03-01 Thread patrick k
- doesn´t work with mysql < 4.1 > >> I must be a bit dumb, but I fail to understand the doc for the >> "order_with_respect_to" META option... Could someone be kind enough to >> have mercy and take time to explain slowly ? > > I've been wondering about it too, and this is what I've found out: >

Re: edit_inline & raw_id_admin

2006-02-25 Thread patrick k
the code i posted was fine. i just had to restart the server. patrick > > On Fri, 2006-02-24 at 15:43 +0100, va:patrick.kranzlmueller wrote: >> first think, then write -> problem solved! > > Since you are unlikely to be the only person to ever come across this > problem, how about posting

Re: order_with_respect_to

2006-02-24 Thread patrick k
i´m trying to implement an up/down-list with dom-drag ... so, i think i´ll ask my hosting company to upgrade mysql. nesh & amit: thanks for your help. patrick > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > patrick k wrote: >> i´m using 4.0.18 (well

Re: order_with_respect_to

2006-02-24 Thread patrick k
i´m using 4.0.18 (well, my hosting company does). besides that, i don´t really understand the query. it is "SELECT COUNT(*) FROM `skip_filmstarts_a` WHERE `film_id` = '778". the film_id i have entered is "7786". patrick > > -BEGIN PGP SIGNED MESSAGE- > Ha

Re: order_with_respect_to

2006-02-24 Thread patrick k
hange my model a bit (so here´s the new one): class Filmstarts(meta.Model): film = meta.ForeignKey(Film, raw_id_admin=True) class META: order_with_respect_to = 'film' admin = meta.Admin( list_display = ('film'),     ) On 2/24/06, patrick k <[EMAIL

Re: order_with_respect_to

2006-02-24 Thread patrick k
Title: Re: order_with_respect_to did that. exactly the same error. On 2/24/06, patrick k <[EMAIL PROTECTED]> wrote: here it is (i´m not sure if you need all of this ...): TemplateSyntaxError: Caught an exception while rendering. This is a template syntax error, you can  put a TEMPLATE

Re: mod_python & devserver & apache restart

2006-02-21 Thread patrick k
thanks - that worked. patrick > > On Tue, Feb 21, 2006 at 08:12:30PM +0100, patrick k wrote: >> 1. is the django development-server only meant for local use? i?m asking >> because i tried to use it with dreamhost and it doesn?t seem to work. > > You need to speci

Re: more model basics - mny to many's

2006-02-14 Thread patrick k
what do you need the table songInstrument for? i´d suggest using a many-to-many relationship ... see http://www.djangoproject.com/documentation/model_api/#many-to-many-relations hips class song(meta.Model): title = ... duration = ... instrument = meta.ManyToManyField(instrument) musician =

Re: Dreamhost - problem with Django installation

2006-01-13 Thread patrick k
> Patrick, but if the error happens twice a day, as you say, that is > very, very bad having hosting with Dreamhost. right now, i don´t suggest hosting with dreamhost. maybe it´s only a temporary problem, maybe it´s only "my" server (who knows). but not being able to work at least twice a day is

Re: Django DB Design Question (help please!)

2006-01-09 Thread patrick k
> Thanks Patrick, > > So, you are voting for the second model. I think Django should have > such relationship builtin where I can avoid defining user_id as a field > in my news table. actually, i don´t really see a difference between model 1 and 2. you have a company which you assign users to.

Re: Django DB Design Question (help please!)

2006-01-09 Thread patrick k
within a view you could use news_list = news.get_list(user__id__exact=request.user.id) for the logged-in user to get the user within the template use news.get_user.username ... http://www.djangoproject.com/documentation/db_api/#many-to-one-relations hope that helps, patrick > > Hi, > > I

Re: Dynamic templates and delegation (portal-style app)

2006-01-06 Thread patrick k
oops. of course he is georg. sorry for that. > > On Friday 06 Jan 2006 4:29 pm, patrick k wrote: >> however, it might be interesting to take a look at simons cms >> project: >> https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/CmsPr >> oject > > i think he iis georg and not simon ;-)

deleting multiple objects

2006-01-06 Thread patrick k
i´m asking this question again, because i still haven´t found a solution. i like the way, related objects are being displayed (and deleted) in the admin-interface and i´d like to integrate that into my application. 1. is there a way to display (and delete) multiple related objects using generic

Re: How to simplify my views?

2006-01-02 Thread patrick k
first, we are working on a very similar application. it´s a tool for project-management which one could use to extend the django admin-interface (well, at least that´s what we do). to help with your problem: we are using django-authentication to check user- and group-information - which is in

unreserved praise for performance

2005-12-29 Thread patrick k
while working with django for a couple of weeks now, i´m very impressed by the performance. the sites of my app are building up incredible fast (e.g. compared with rails), although i´m on a shared 8$/month environment. keep up the fine work. patrick.

Re: MultiValueDict

2005-12-28 Thread patrick k
thanks a lot. > > On 12/28/05, patrick k <[EMAIL PROTECTED]> wrote: >> now i´m trying to get all "users" to send them an email. >> but with something like post_data["user"] i only get "[EMAIL PROTECTED]". >> >> so, how can i

MultiValueDict

2005-12-28 Thread patrick k
i´m having some trouble with a MultiValueDict and hope that somebody can help me. my request.POST looks like this: {'body': ['some body text'], 'project': ['1'], 'note': ['1'], 'user': ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'], 'byuser': ['1']} now i´m trying to get all

Re: admin-interface: some questions

2005-12-27 Thread patrick k
quot;id_summary", "id_body", and so on. > > #id_summary { > width: 100%; > height: 5em; > } > > #id_body { > width: 100%; > height: 10em; > } > > Thanks, > > Eugene > > > "patrick k" <[EMAIL PROTECTED]&

Re: admin-interface: some questions

2005-12-27 Thread patrick k
> On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: >> - how do i change the numrows for a textarea-field? > > You can do this with CSS; create custom admin templates that include > some custom CSS code. what i meant was changing the numrows for each textarea-field

admin-interface: some questions

2005-12-27 Thread patrick k
i´ve been playing around with the admin-interface and have some questions: - how do i change the numrows for a textarea-field? - why is it always the first column of the list which is linked to the detail-page? when listing the ID, i´d like the ID to be the first field in the list.

list for list object

2005-12-25 Thread patrick k
i have a list of projects with related milestones. now i want to output the projects, and for every project the milestones according to that project. so, basically, i need a list of milestones for a list of projects. extract from my milestone-model: class Milestone(meta.Model): project =

additional data for generic views

2005-12-21 Thread patrick k
while trying to implement a system for project-management into our django-based admin-interface, i´m having a small problem here. right now, i´m using generic views for the "notes". when a user wants to create a note, he/she has to select a user or a user-group which relates to that note. for

Re: filters in admin-interface

2005-12-17 Thread patrick k
problem solved. > > i am trying to display a filter for a many-to-one relation. > problem is: the filter doesn´t show up. > > fragment of the model looks like this: > > class Project(meta.Model): > id = meta.AutoField('ID', primary_key=True) > title = meta.CharField("Title", maxlength=100)

filters in admin-interface

2005-12-17 Thread patrick k
i am trying to display a filter for a many-to-one relation. problem is: the filter doesn´t show up. fragment of the model looks like this: class Project(meta.Model): id = meta.AutoField('ID', primary_key=True) title = meta.CharField("Title", maxlength=100) user =

label for foreignkey-relations

2005-12-08 Thread patrick k
is it possible to have different label-names for columns relating to the same foreign table? fragment of my film model: country_1 = meta.ForeignKey(Country) country_2 = meta.ForeignKey(Country) country_3 = meta.ForeignKey(Country) in the admin-interface, i´d like to have different labels for

Re: preexisting database

2005-12-08 Thread patrick k
thanks. didn´t know the word "legacy", so searching was not succesful. > http://www.djangoproject.com/documentation/legacy_databases/ > > patrick k wrote: >> is there any documentation on how to work with a pre-existing database? >> >> patrick >> >> >

preexisting database

2005-12-08 Thread patrick k
is there any documentation on how to work with a pre-existing database? patrick

Re: install admin won´t work

2005-12-08 Thread patrick k
i´ve double checked everything. however, i just tried "django-admin.py install admin --settings=cms.settings" and that worked. somehow strange. > What is the value of your DJANGO_SETTING_MODULE environment variable? > Is that the same as the project you're working on? > > Have you checked

Re: 2nd database for a specific app

2005-11-22 Thread patrick k
th DJANGO_SETTINGS_MODULE? > >> >> On 11/21/05, patrick k <[EMAIL PROTECTED]> wrote: >>> i have django installed on dreamhost. now i´d like to build an app with >>> tables from a given database on another host, still using my >>> dreamhost-ins

Re: 2nd database for a specific app

2005-11-21 Thread patrick k
sorry for being stupid here, but do you mean something like this: django-admin.py startapp mynewapp --settings=myproject.newappsetings can i set the 2nd settings-file with DJANGO_SETTINGS_MODULE? > > On 11/21/05, patrick k <[EMAIL PROTECTED]> wrote: >> i have django installed

Re: Unknown column 'auth_users.password' in 'field list'

2005-11-21 Thread patrick k
solved. thanks. > > On 11/21/05, patrick k <[EMAIL PROTECTED]> wrote: >> when trying to login to the admin-interface i get the following error: >> "Unknown column 'auth_users.password' in 'field list'" > > Hey Patrick, > > Check this out: >

Unknown column 'auth_users.password' in 'field list'

2005-11-21 Thread patrick k
when trying to login to the admin-interface i get the following error: "Unknown column 'auth_users.password' in 'field list'" patrick

2nd database for a specific app

2005-11-21 Thread patrick k
i have django installed on dreamhost. now i´d like to build an app with tables from a given database on another host, still using my dreamhost-installation. since the database-settings seem to be global (settings.py) for all apps, i´m not quite sure how to do this. patrick

Re: templates & content-elements

2005-11-17 Thread patrick k
eugene: thanks for the links. it´s really hard for me to explain what i want - i tried it yesterday with a code-example, but didn´t get an answer (so i thought i try a different approach and relate to templavoila, although that might give the wrong impression). basic idea: building a site with

templates & content-elements

2005-11-16 Thread patrick k
first of all, let me introduce myself: i´m working as a programmer/designer with vonautomatisch in vienna/austria. i´m writing my PhD on "cooperative structures". right now, we are writing an article called "RTFM and teach yourself" for a book about "micro-learning" which is going to be published

Re: django & dreamhost

2005-11-14 Thread patrick k
wiki-page has obviously changed. my app also seems to work. thanks for the advice. patrick > > I couldn't find this text in DreamHost Wiki page. Are you sure you don't > have some caching system playing tricks on you? AFAIK, this page was updated > long time ago to reflect the Admin change.