Re: Admin plugins

2012-06-14 Thread patrickk
what do you mean with "Grappelli and django-admin-tools are both still being developed"? both apps have stable releases for quite a while (with grappelli, this is even true for a couple of years now). best, patrick Am Donnerstag, 14. Juni 2012 00:33:00 UTC+2 schrieb Lachlan Musicman: > > Hola,

Re: default django admin theme

2010-12-24 Thread patrickk
these discussions might be helpful: refining django admin look proposal http://groups.google.com/group/django-developers/browse_thread/thread/ca4f26d616921753/ django design czar http://groups.google.com/group/django-developers/browse_thread/thread/18bca037f10769e9/ btw: don´t mix up grappelli a

Re: restrict downloading files based on user-permission

2010-11-22 Thread patrickk
here´s a snippet which shows an implementation: http://djangosnippets.org/snippets/1710/ however, the only cross-browser solution I´ve come across is the one I ´ve posted above. regards, patrick On 22 Nov., 16:40, David De La Harpe Golden wrote: > Looked into this a bit (will undoubtedly bite u

Re: restrict downloading files based on user-permission

2010-11-21 Thread patrickk
ote(file.name.encode('utf-8')) > response['Content-Disposition'] = 'attachment; filename=%s' % quoted_name > > and it works perfectly with any unicode name. > > > > > On 21 Nov., 16:31, patrickk wrote: > >> I need to serve media-fi

restrict downloading files based on user-permission

2010-11-21 Thread patrickk
I need to serve media-files uploaded by users, but only the user who uploaded a file should be able to download that file again. therefore, I need to check whether the currently logged-in user is the creator of that file (ok, that´s easy with using a view). – of course, serving the media-file via

Re: restrict downloading files based on user-permission

2010-11-21 Thread patrickk
tested with firefox, safari, chrome, IE7, IE8, opera ... guess it works. regards, patrick On 21 Nov., 16:31, patrickk wrote: > I need to serve media-files uploaded by users, but only the user who > uploaded a file should be able to download that file again. therefore, > I need to

filefield and utf-8, rev12661 and filefield.size

2010-11-19 Thread patrickk
with rev 12661, storage.py has been changed and return smart_str(os.path.normpath(path)) has been replaced with return os.path.normpath(path) now, when trying to upload a filefield (or displaying the size of a filefield), we get this error: Caught UnicodeEncodeError while rendering: 'ascii' codec

Re: Is there any kind of verbose_name for apps?

2010-06-16 Thread patrickk
I don´t think there is (although this issue has already been discussed years ago) - no ability to change apps-name and/or app-translations. you could use a 3rd-party-app like admin-tools to customize your index- page and change appnames (see http://bitbucket.org/izi/django-admin-tools/overview/).

Re: File Upload with Progress Bar

2010-06-03 Thread patrickk
n simply unable to make it run.  I also tried a django-uploadify, > but no results! Frustrating it is. > > If you can share the code, i would rather use it along with some other > experiments that I have been doing and publish it in the public domain. > > Regards. > > On Thu,

Re: File Upload with Progress Bar

2010-06-03 Thread patrickk
you could use uploadify, see http://www.uploadify.com/. of course, it´s not an ideal solution since its flash-based. we´ve been using uploadify with django and the filebrowser for about a year now and it works quite well. regards, patrick On 3 Jun., 06:32, Venkatraman S wrote: > Tell me about

Re: Grappelli - TinyMCE only works in Firefox

2010-05-06 Thread patrickk
TinyMCE works in every browser ... you just need to change the setup- file, see http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/browsers regards, patrick On 6 Mai, 14:53, django_jedi wrote: > Hi All, > > We're using Grappelli in the admin of a Django site we're building. > Weirdly, th

Re: AdminField Rendering Question

2010-05-05 Thread patrickk
there you go: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/widgets.py#L88 unfortunately, it´s all hardcoded. if you need to customize the widget, you may want to write your own and subclass the given one. hope that answers your question. regards, patrick On 5 Mai, 01

Re: Django-grappelli issue

2010-05-02 Thread patrickk
looks like you´re using either the wrong templates or the stylesheets are not loaded properly. regards, patrick On 2 Mai, 07:12, Tran Cao Thai wrote: > I discovered the grappelli app today and just set up it. However, the admin > site doesn't look as good as the screenshot from the site. Here i

Re: test with fk to user doesn´t fail (although it should)

2010-04-17 Thread patrickk
I see ... thanks for the explanation. patrick On Apr 17, 3:02 pm, Karen Tracey wrote: > On Sat, Apr 17, 2010 at 8:01 AM, patrickk wrote: > > haven´t done much testing yet, so this may be a trivial question. > > > here´s my testcase: > > class CostAccountModelTests(Tes

test with fk to user doesn´t fail (although it shou ld)

2010-04-17 Thread patrickk
haven´t done much testing yet, so this may be a trivial question. here´s my testcase: class CostAccountModelTests(TestCase): def setUp(self): self.account = CostAccount.objects.create(user_id=1) def test_account_created(self): self.assertEqual(CostAccount.objects.count(), 1

Re: django-app user clashes with python-module user

2010-02-06 Thread patrickk
th and changing all of the import > statements feels like a burden, but I've also spent hours trying to > get a dateutil library to work only to find out that there is a naming > conflict with another library, which hides the one I want. > > hope this helps. > > jeff > > On

django-app user clashes with python-module user

2010-02-04 Thread patrickk
our hosting-provide told me that I should rename my django-app "user" to something else, because there´s a python-module "user" and with using user.urls (within our url configuration), we do get an error. my question is, if this is the correct way to solve this problem. so far, I´ve never noticed t

Re: Photo Gallery Suggestions

2009-12-15 Thread patrickk
what we usually do with the filebrowser is this: we create a custom gallery (gallery-model with gallery-images as tabularinlines) with a filebrowsefield for a folder - when you add a gallery you just select a folder on your filesystem. we overwrite the save-method (of the gallery) in order to find

Re: Should empty formsets call their own clean method?

2009-12-12 Thread patrickk
see also http://code.djangoproject.com/ticket/10828 I guess it´s a similar issue. On 11 Dez., 23:55, Preston Holmes wrote: > Well something wonky is going on. > > From my readthrough of the code, it *should* get called on empty > formsets: > > is_valid calls total_form_count to get a loop count

Re: Adding a dashboard to admin

2009-12-01 Thread patrickk
having a different admin site instance won´t help you much with this issue. I´d say ... go with what you have. if someday you need to customize the admin-site, create your own admin site or even subclass djangos AdminSite. regards, patrick On 1 Dez., 03:52, Brian Neal wrote: > On my site, users

Re: Upload Progress Bar

2009-11-13 Thread patrickk
We´ve been using Uploadify with the django-filebrowser and it works quite well. Code is here: http://code.google.com/p/django-filebrowser/ regards, patrick On 13 Nov., 16:55, John D Giotta wrote: > Can you provide details to setting this up? It seems everywhere I look > its always half explained

Re: Translating App Names

2009-09-20 Thread patrickk
in the meantime, you can translate app names like this: http://groups.google.com/group/django-users/msg/ef5a723983e56e96 the whole discussion is here: http://groups.google.com/group/django-users/browse_thread/thread/f8fcbe25e3327c5d/ef5a723983e56e96?#ef5a723983e56e96 it´s over-complicated to tra

Re: Admin dashboard : hide and merge modules

2009-09-20 Thread patrickk
you can now use GrappelliSite instead of AdminSite which gives you some options for the admin index page. take a look at http://code.google.com/p/django-grappelli/wiki/customizingindex for more information. you can hide and merge modules. renaming is a bit more complicated since it affects subsit

Re: Renaming displayed django application name in admin

2009-09-01 Thread patrickk
I don´t think it´s possible to change an app-name. you can change the name of the models though. regards, patrick On 1 Sep., 10:50, Joshua Russo wrote: > On Tue, Sep 1, 2009 at 1:10 AM, Joshua Partogi > wrote: > > > Dear all, > > How do we change the displayed application name in django admin

Re: Many-to-many column admin interface

2009-08-28 Thread patrickk
I could be mistaken ... but why not using a third model. C(models.model): a = models.ForeignKey('A') b = models.ForeignKey('B') when editing either A or B, you could use C as inlines. regards, patrick On 28 Aug., 17:18, Sven Richter wrote: > But i wonder how this would help me further.

/// job offer: django-webdeveloper in vienna/austria

2009-08-24 Thread patrickk
I hope that this doesn´t violate any group-rules ... * * * * * * * * * * vonautomatisch is looking for a webdeveloper having profound knowledge and experience with django/python/html/css/javascript. – scope of work in collaboration with the concept- and graphics-department, you have to accompli

ANN: Grappelli 2.0 prerelease

2009-08-14 Thread patrickk
The prerelease of Grappelli 2 is out now. –Screenshots http://code.google.com/p/django-grappelli/wiki/screenshots –Source The Source is currently available in /branches/grappelli_2/. Please read the Documentation for Installtion & Setup: http://code.google.com/p/django-grappelli/wiki/Grappelli_2

ANN: FileBrowser 3.0 Pre-Release

2009-07-18 Thread patrickk
The first pre-release of FileBrowser 3 is out now. The Source is currently available as a Branch: http://code.google.com/p/django-filebrowser/source/browse/#svn/branches/filebrowser_3/filebrowser Please read the Documentation, because a lot has changed: http://code.google.com/p/django-filebrowse

Re: inlineformset delete on empty revisited

2009-07-11 Thread patrickk
maybe this helps (well ... it probably doesn´t help, but it maybe clarifies): http://code.djangoproject.com/ticket/10828 regards, patrick On 11 Jul., 08:11, nbv4 wrote: > http://pastebin.com/f40a3bde9 > > I found this little snippet on this group and am trying to get it to > work on my model, b

Re: Admin page set up.

2009-07-02 Thread patrickk
o we have other better doc for admin page set up? > > On Thu, Jul 2, 2009 at 9:19 PM, patrickk wrote: > > > your admin-url has NO relation whatsoever to the name of your project > > or app. > > > IMHO, you should try to understand how the url-configuration works in > &g

Re: Admin page set up.

2009-07-02 Thread patrickk
ontrib.admin.urls')), >     #  (r'^admin/', include(admin.site.urls)), >        (r'^admin/(.*)', admin.site.root), > > But not able to find what I am missing. How do I get the admin login page? > > Thanks, > Damudar > > On Thu, Jul 2, 2009 at 8:38 P

Re: Admin page set up.

2009-07-02 Thread patrickk
not found on this server > > Thanks, > Pankaj > > On Thu, Jul 2, 2009 at 8:00 PM, patrickk wrote: > > > you have defined it in urls.py ... with > > (r'^admin/(.*)', admin.site.root), > > your URL is > >http://server-name:1020/admin/ > > > a

Re: Admin page set up.

2009-07-02 Thread patrickk
you have defined it in urls.py ... with (r'^admin/(.*)', admin.site.root), your URL is http://server-name:1020/admin/ after adding 'django.contrib.admin' to your INSTALLED_APPS you have sync the database, of course: python mangage.py syncdb regards, patrick On 2 Jul., 15:13, kamal sharma wrot

Re: Learning curve toward build reasonable webpage for a newbie

2009-07-02 Thread patrickk
IMHO, you´re mixing things up here. django helps you with the structure of your app, the database access/ retrieval, the _logic_ of your application. this has nothing to do with UI design. django neither limits nor helps you with actually _designing_ your so-called frontend. that said, django ha

Re: Setting up TinyMCE with django-grappelli?

2009-06-29 Thread patrickk
hi chris, the question about tinymce is answered/discussed at the grappelli google-code issue-list. you might want to ask your question about the filebrowser setup at the filebrowser google-group: http://groups.google.com/group/djangofilebrowser please not that you should give more details. you

Re: Forms __init__ : use of **kwargs

2009-06-29 Thread patrickk
I´m also interested in this question/answer - since the documentation about forms lack more complex examples, form/formset-definitions are a guessing game at times. not a huge problem though, because with some experience and lots of research it´s (more or less) working. but what´s "best practice"

Re: how to run just ONE test?

2009-06-24 Thread patrickk
I see. your foreign key example makes things much clearer to me. sorry for not being clear enough about the issue with my first question. thanks a lot, patrick On Jun 24, 12:47 pm, Russell Keith-Magee wrote: > On Wed, Jun 24, 2009 at 5:17 PM, patrickk wrote: > > > just

Re: how to run just ONE test?

2009-06-24 Thread patrickk
statements are not related to the app I´m actually testing. thanks, patrick On Jun 24, 11:28 am, Kenneth Gonsalves wrote: > On Wednesday 24 June 2009 14:47:05 patrickk wrote: > > > just to avoid any misunderstanding: > > when I´m running one test with "... test > > m

Re: how to run just ONE test?

2009-06-24 Thread patrickk
explain the problem very well. thanks a lot for your effort and patience, patrick On Jun 24, 9:45 am, Russell Keith-Magee wrote: > On Mon, Jun 22, 2009 at 8:50 PM, patrickk wrote: > > > unfortunately, I´m still stuck with it ... > > > here´s my tests.py: > &g

problem with mod_wsgi and integrated devserver

2009-06-23 Thread patrickk
we have our dedicated webserver setup with django & mod_wsgi, where everything works fine. but: when I start the devserver, the templates and mediafiles are not there ... if I start the integrated devserver with: --adminmedia = /path/to/admin/media/ and if I add: "/var/www/myserver/django_src/dja

Re: how to run just ONE test?

2009-06-22 Thread patrickk
another note: it doesn´t matter if I restrict the tests to "myapp" or any other app (e.g. "tagging" or "sorl-thumbnail") I´ve installed. with every test, all tables are created/removed. On 22 Jun., 14:50, patrickk wrote: > unfortunately, I´m still stuck w

Re: how to run just ONE test?

2009-06-22 Thread patrickk
performed. btw, models.py is empty (I don´t need that file for my app). thanks, patrick On 22 Jun., 13:55, patrickk wrote: > that´s it. thanks a lot. > > On 22 Jun., 13:28, Russell Keith-Magee wrote: > > > On Mon, Jun 22, 2009 at 6:42 PM, patrickk wrote: > > > > th

Re: how to run just ONE test?

2009-06-22 Thread patrickk
that´s it. thanks a lot. On 22 Jun., 13:28, Russell Keith-Magee wrote: > On Mon, Jun 22, 2009 at 6:42 PM, patrickk wrote: > > > this is the first time I´m using the test-framework, so it might be a > > really stupid question. > > > when using > > python manag

how to run just ONE test?

2009-06-22 Thread patrickk
this is the first time I´m using the test-framework, so it might be a really stupid question. when using python manage.py test myapp or python manage.py test myapp.BaseTest I´m getting lots of output for other apps than "myapp" - it seems that tests are running for every installed app (and not ju

Re: tinycme and filebrowser - unable to select image

2009-06-09 Thread patrickk
I´m actually not sure whether or not your saying there´s an error with the filebrowser-templates ... because I don´t know what you mean with "the tinymce filebrowser template". if you think you´ve found an error, please use the google-code issue- tracker to report it. thanks, patrick On Jun 9,

Re: tinycme and filebrowser - unable to select image

2009-06-09 Thread patrickk
hi sam, it seems that the js to select the image isn´t loaded (see http://code.google.com/p/django-filebrowser/source/browse/trunk/filebrowser/templates/filebrowser/index.html, line 10 to 14 - probably line 12). please (re)check the "available settings" for the filebrowser - especially the diffe

Re: FileBrowser: Installation Question

2009-05-27 Thread patrickk
I don´t quite understand your question. fb_settings is imported with the filebrowser-views ... not sure if that answers your question. patrick On May 27, 4:01 am, "Bob N." wrote: > OK, so how do I get the fb_settings to appear in the runtime Settings? > > On May 26, 12:51 

Re: FileBrowser: Installation Question

2009-05-26 Thread patrickk
"change fb_settings.py" means that you can/should change the variables defined there. e.g., if you are not using a directory named "uploads", you have to take a look at fb_settings.py and change that directory accordingly (note: you don´t _have_ to use "uploads", you can use whatever you want). a

Re: FileBrowser: Models for media

2009-05-21 Thread patrickk
er change you made was to replace the ManyToMany on Course with a > Foreign key to Course from Material. > Could you explain the benefit of that? > > On May 21, 4:36 am, patrickk wrote: > > > I´d use a slightly different approach: > > > class Course(models.Mode

Re: FileBrowser: Models for media

2009-05-21 Thread patrickk
I´d use a slightly different approach: class Course(models.Model): name = ... class Material(models.Model): course = models.ForeignKey(Course) media = FileBrowseField(max_length=200, blank=True, null=True) order = models.PositiveIntegerField("Order", blank=True, null=True) the p

Re: djangotiny and filebrowser question

2009-05-16 Thread patrickk
using the filebrowser outside the admin is easy: just change the templates/stylesheets and remove the staff member decorator. besides that, you may want to add/remove some functionality. we used the filebrowser for a public blog-system about 2 years ago. unfortunately, that site doesn´t exist any

Re: how to require/validate minimum number of forms in formset?

2009-04-30 Thread patrickk
., 22:34, patrickk wrote: > this is strange (at least to me), but the clean-method doesn´t seem to > be called when _all_ forms are marked for deletion. > > patrick > > On 15 Apr., 22:05, patrickk wrote: > > > to be more precise: > > > class AmountBaseFormset(

Re: django-filebrowser

2009-04-26 Thread patrickk
there´s something wrong with your setup. please take a look at the "available settings" and change stuff accordingly. when I´m having an error like this, it looks like: OSError: [Errno 2] No such file or directory: '/srv/www/media/ auto_media/uploads/xxx/' since there´s no path in your error mes

Re: django-grappelli setup problem

2009-04-17 Thread patrickk
ick On Apr 17, 8:18 am, Lars Stavholm wrote: > patrickk wrote: > > I´m working with the request-context-processor. I´ll change that for > > the user (because the auth-processor is required for the admin > > anyway). nevertheless, without the request-processor, bookmark

Re: django-grappelli setup problem

2009-04-16 Thread patrickk
;, to your template context processors. however, I´ll take another look at that in order to simplify. thanks, patrick On 16 Apr., 21:44, Lars Stavholm wrote: > patrickk wrote: > > it´s really easy to debug here: > > line 60 of index.html is {% get_navigation request.user %}.

Re: django-grappelli setup problem

2009-04-16 Thread patrickk
ht now and I'm not sure what to do about it. The recommended > fixtures are loaded. > > Any ideas anyone? > /L > > Lars Stavholm wrote: > > patrickk wrote: > >> line 53 of base.html is {% get_help request.path %}. > > >> I´m not exactly sure what´s ha

Re: how to require/validate minimum number of forms in formset?

2009-04-15 Thread patrickk
this is strange (at least to me), but the clean-method doesn´t seem to be called when _all_ forms are marked for deletion. patrick On 15 Apr., 22:05, patrickk wrote: > to be more precise: > > class AmountBaseFormset(formsets.BaseFormSet): > >     def clean(self): >      

Re: how to require/validate minimum number of forms in formset?

2009-04-15 Thread patrickk
resp. the number of delete forms here. or is this approach the wrong way? thanks, patrick On 15 Apr., 21:03, patrickk wrote: > I´m allowing the forms within a formset to be deleted. but I need at > least one form to save the formset. is it possible to require at least > one form? if ye

how to require/validate minimum number of forms in formset?

2009-04-15 Thread patrickk
I´m allowing the forms within a formset to be deleted. but I need at least one form to save the formset. is it possible to require at least one form? if yes, how do I achieve this? thanks, patrick --~--~-~--~~~---~--~~ You received this message because you are subs

Re: django-grappelli setup problem

2009-04-15 Thread patrickk
tested this locally, so I´m not sure if that can cause the error (we´re having test/development-servers to do this). if you dig a little depper and you think you´ve found a bug - then please report it using the google-code issue tracker. patrick On 15 Apr., 20:14, Lars Stavholm wrote: > patri

Re: django-grappelli setup problem

2009-04-15 Thread patrickk
in order to use the admin, just use /admin/ (grappelli doesn´t change the admin-urls). patrick On 15 Apr., 10:06, Lars Stavholm wrote: > patrickk wrote: > > which URL causes that error? > > http://localhost:8000/grappelli/admin/ > > > please note that in order to u

Re: Two projects, one admin, filebrowser

2009-04-15 Thread patrickk
although I don´t fully understand the problem, there seem to be different solutions: ### when using the filebrowsefield, you could also write a custom model method to get the different URLs. ### if your intranet-site and your public-site are on the same server you could maybe use a symlink as wel

Re: django-grappelli setup problem

2009-04-15 Thread patrickk
which URL causes that error? please note that in order to use grappelli you have to setup the admin- site before, see http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-admin. maybe this should be mentioned in the docs, but I guess it´s pretty obvious. patrick. On Apr 14, 8:3

Re: adminsite instance and (registered) related objects question

2009-04-10 Thread patrickk
On Apr 11, 6:03 am, Malcolm Tredinnick wrote: > On Fri, 2009-04-10 at 20:17 -0700, patrickk wrote: > > anyone? > > *sigh* If somebody had an answer, they would have answered already. It's > kind of self-fulfilling prophecy! your answer shows that it´s someti

Re: adminsite instance and (registered) related objects question

2009-04-10 Thread patrickk
anyone? I´m not sure whether or not to open a ticket on this issue. It could be "solved" with a better explanation in the docs. Question is: Is this a "bug" or is the documentation incomplete/ inexplicit? thanks, patrick On Apr 9, 9:50 am, patrickk wrote: > I´ve recen

Re: Generating USER documentation?

2009-04-10 Thread patrickk
something like this is included with grappelli, see http://code.google.com/p/django-grappelli/ patrick On 10 Apr., 16:28, "bax...@gretschpages.com" wrote: > What I'm after is documentation for the admin users, similar to the > generated documentation, only less technical. A simple how-to for >

adminsite instance and (registered) related objects question

2009-04-09 Thread patrickk
I´ve recently figured out that if you use different adminsite instances, you have to register every related model with every instance. giving an example: /admin/ ... autodiscover /configuration_admin/ ... config stuff /main_admin/ ... stuff important for editors (e.g. including the model "Movie")

Re: admin & edit-inlines: how to get ordered_forms in case of error?

2009-04-07 Thread patrickk
just for the record: http://code.djangoproject.com/ticket/8165 guess this makes (re)ordering of edit-inlines impossible for now (at least if one wants to preserve the ordering in case of errors). thanks, patrick On 6 Apr., 16:21, patrickk wrote: > let´s say I´m having inlines with a fi

admin & edit-inlines: how to get ordered_forms in case of error?

2009-04-06 Thread patrickk
let´s say I´m having inlines with a field "pub_date" and the ordering is set to pub_date. in the admin-interface, I´m changing the pub_date for several fields/inlines and trying to save. if there are no errors, everyting´s fine. however, if there are errors (somewhere on the page and not necessari

Re: admin: search generic relation?

2009-03-19 Thread patrickk
hmmm, what about defining a custom search_method? is that possible? maybe with using a Custom Manager? On 19 Mrz., 19:59, Alex Gaynor wrote: > On Thu, Mar 19, 2009 at 12:37 PM, patrickk wrote: > > > is there any way to search for a "content_object" within the change- &g

admin: search generic relation?

2009-03-19 Thread patrickk
is there any way to search for a "content_object" within the change- list? my model: class Trailer(models.Model): ... content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_object = generic.GenericForeignKey() ... now, I´d like to do

Re: self.content_type within __unicode__ ???

2009-03-11 Thread patrickk
just for the record, this is the ticket: http://code.djangoproject.com/ticket/9362 it´s been opened 5 months ago ... On 11 Mrz., 15:07, patrickk wrote: > I´ve figured out that this seems to be a bug with edit_inline. > > patrick. > > On 11 Mrz., 13:46, patrickk wrote: &

Re: self.content_type within __unicode__ ???

2009-03-11 Thread patrickk
I´ve figured out that this seems to be a bug with edit_inline. patrick. On 11 Mrz., 13:46, patrickk wrote: > when using "self.content_type" within "__unicode__" on one of my > models, I´m not getting the right ContentType. instead of getting the > reference t

self.content_type within __unicode__ ???

2009-03-11 Thread patrickk
when using "self.content_type" within "__unicode__" on one of my models, I´m not getting the right ContentType. instead of getting the reference to _another_ model, I´m always getting the current model. an example: class ContainerListItem(models.Model): containerlist = models.ForeignKey(Cont

Re: translating app name ... again

2009-03-06 Thread patrickk
label|capfirst }} with {% trans app_label %} 5. change breadcrumbs in change_form.html /// on line 28 replace { app_label|capfirst }} with {% trans app_label %} 6. change app-names in app_index.html /// on line 11 replace {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %

Re: translating app name ... again

2009-03-06 Thread patrickk
r app name in admin panel > > i think u can use > > *USE_I18N = True > > in settings.py* > >  and > >    * class Meta: >         verbose_name_plural = "Your App Name" > > in models.py* > > try it and write me answer please > > 2009/3/4

Re: translating app name ... again

2009-03-05 Thread patrickk
(even if you do speak english, "auth" is not very descriptive). thanks, patrick On 5 Mrz., 10:23, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 23:30 -0800, patrickk wrote: > > great - a gleam of hope ... but what do you mean with "put each of > > your app nam

Re: translating app name ... again

2009-03-04 Thread patrickk
just tried to write the app-names to my applications __init__-file. the po-file is generated fine, but the translation still doesn´t work. On Mar 5, 8:30 am, patrickk wrote: > great - a gleam of hope ... but what do you mean with "put each of > your app names into a file ..."?

Re: translating app name ... again

2009-03-04 Thread patrickk
ation-file (django.po, django.mo), but that doesn´t work. probably because I´m missing that "file" you´re talking about. thanks, patrick On Mar 5, 2:51 am, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 09:39 -0800, patrickk wrote: > > so far, it doesn´t seem possible to trans

translating app name ... again

2009-03-04 Thread patrickk
so far, it doesn´t seem possible to translate the app-names within the admin-interface, which results in a strange index-site with mixed languages. any updates on this issue? any ideas? thanks, patrick --~--~-~--~~~---~--~~ You received this message because you

Re: Filebrowser No thumbnail generation

2009-02-22 Thread patrickk
there has never an issue/ticket posted about this (on the google-code page of the filebrowser), so I guess there´s something wrong with your configuration/setup ... you could try to debug by using print- statements within the image-generator function. On Feb 22, 8:02 am, leau2001 wrote: > Patr

Re: Filebrowser No thumbnail generation

2009-02-21 Thread patrickk
could you be a bit more specific? what exactly works? what not? it seems that you can upload an image but the thumbnail is not created. do you mean the actual "thumbnail" or one of the image- versions named "thumbnail"? patrick On Feb 21, 11:50 am, leau2001 wrote: > Hi, > > I try to  use file

Re: File Browser App

2009-02-17 Thread patrickk
of course you can install the django-filebrowser outside of the admin ... it´s basically a standalone-app with the look and feel of the admin-interface. so, you just have to change the templates and maybe the permissions. patrick. On Feb 3, 1:38 pm, cootetom wrote: > Hi all, > > I'm looking for

Re: FileBrowser: Easy access to generated images from the template?

2009-01-19 Thread patrickk
you could either use a templatetag or a custom-method. that said, we are just working on integrating this with the filebrowse- field. so, if you wait a couple of days it´ll be there. here´s more information: http://code.google.com/p/django-filebrowser/issues/detail?id=63 patrick. On Jan 18,

Re: Splitting models.py won't install models

2008-10-29 Thread patrickk
strange. I´m using this for one of my applications and it works fine. hers´s my setup: /library/ __init__.py admin.py views.py /models/ __init__.py addon.py camera.py material.py __init__.py (in the models-directory): from library.models.material

Re: Splitting models.py won't install models

2008-10-28 Thread patrickk
you could try changing the import in __init__.py to someting like this: from app_name.models.model_file import Model1, Model2, ... e.g. from library.models.material import Material, MaterialImage ... might work. patrick. On 28 Okt., 10:36, Alistair Marshall <[EMAIL PROTECTED]> wrote: > I have

Re: Breaking up models into smaller files

2008-10-25 Thread patrickk
t ... from myappname.models.model2 import ... and for model1 and model2 you have to define: class Meta: app_label = "myappname" patrick On 25 Okt., 14:02, "Low Kian Seong" <[EMAIL PROTECTED]> wrote: > How is the "app_label" used? Sparse documentation about th

Re: Breaking up models into smaller files

2008-10-25 Thread patrickk
be aware that you also have to define app_label = "myapp" for every model when using the admin-interface. patrick. On Oct 25, 12:13 pm, TiNo <[EMAIL PROTECTED]> wrote: > They are just normal python files. So you could just create a 'models' > folder and within it an __init__.py. > so: > > - app

Re: order of apps in the admin panel

2008-10-25 Thread patrickk
unfortunately, I don´t think there is. stuff like this doesn´t seem to be important enough for the django developers. guess you just have to accept that (and shake your head). On Oct 25, 1:49 am, shacker <[EMAIL PROTECTED]> wrote: > > On Oct 13, 11:00 am, Vokial <[EMAIL PROTECTED]> wrote: > > >

Re: ordering edit inlines in admin

2008-10-22 Thread patrickk
just found this ticket (http://code.djangoproject.com/ticket/8165) which is probably the reason why (re-)ordering edit-inlines is so complicated. On Oct 21, 3:43 pm, patrickk <[EMAIL PROTECTED]> wrote: > does anyone know about a clean way to order edit-inlines using the > admin-inte

ordering edit inlines in admin

2008-10-21 Thread patrickk
does anyone know about a clean way to order edit-inlines using the admin-interface? 1. I´ve seen this and other javascript-based snippets: http://simonwillison.net/2008/Sep/13/django/ ... it´s quite simple, but it doesn´t really work. for example, if the formset isn´t valid, the order is lost. ev

admin inline formsets / drag/drop resp. move-up/down / how to retrieve "order_with_respect_to"?

2008-10-10 Thread patrickk
I like to implement drag/drop functionality resp. move-up/move-down buttons for inline-elements within the admin-interface. therefore, in tabular.html/stacked.html I need to know whether or not "order_with_respect_to" is being used for that model - if yes, the buttons will be available - if not, t

Re: django-projekt - vcs - media folder

2008-09-15 Thread patrickk
AIL PROTECTED]> wrote: > Just curious, maybe I'm missing something: why do you not keep your / > media/admin/ files under version control? > > Erik > > On 15.09.2008, at 19:26, patrickk wrote: > > > > > our environment looks like this: > > all media-fil

Re: django-projekt - vcs - media folder

2008-09-15 Thread patrickk
our environment looks like this: all media-files uploaded with the admin-interface are in /media/ uploads/. this directory is not under version control. here´s the basic structure: /media/admin/ (not under vcs) /media/site/ (these files are in our repository, but never uploaded with the admin-int

admin changelist: how to display selected filter (in the headline)

2008-09-10 Thread patrickk
when selecting a filter in the admin changelist, is it possible to show that selected filter (e.g. in the headline)? when you have lots of filters on the right hand side of the changelist, it´s really hard to find out which filter is selected (you may have to scroll down). so, instead of the head

Re: Trivial question about instances forms

2008-09-03 Thread patrickk
you´re obviously using an older django-version. is there a (good) reason for not upgrading? On Sep 3, 4:05 pm, Denis Frère <[EMAIL PROTECTED]> wrote: > On Sep 3, 12:52 pm, "Denis Frère" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > It should be trivial to most of you... > > > When I create an in

Re: formset issue

2008-09-02 Thread patrickk
 pm, koenb <[EMAIL PROTECTED]> wrote: > Are you sure the data will be retrieved twice ? I thought those > queryset definitions were lazy, so they are only executed when the > widgets are rendered. > Hmm, I'll try that out some time to check. > > Koen > > On 1 s

Re: threadlocals: hack or best practice?

2008-09-02 Thread patrickk
... however, thanks a lot. patrick. On Sep 1, 7:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-09-01 at 00:33 -0700, patrickk wrote: > >http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser > > > using threadlocals has been considered a "hack&quo

Re: formset issue

2008-09-01 Thread patrickk
... thanks, patrick On Sep 1, 1:51 pm, koenb <[EMAIL PROTECTED]> wrote: > I have not tried this, but can't you just in your view instantiate the > formset and then loop over the forms and set the queryset on your > field ? > > Koen > > On 1 sep, 09:24, patrickk <[EMA

threadlocals: hack or best practice?

2008-09-01 Thread patrickk
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser using threadlocals has been considered a "hack" recently by one of the main django-developers (james bennett, see http://groups.google.com/group/django-users/browse_frm/thread/f5b2b7775d7c7422/). on the other hand, writing a custom ma

  1   2   3   4   >