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,
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
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
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
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
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
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
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/).
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
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,
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
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
"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
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
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
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
., 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(
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
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
;, 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 %}.
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
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):
>
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
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
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
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
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
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
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
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
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
>
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")
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
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
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
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
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:
&
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
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
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 %
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
(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
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 ..."?
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
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
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
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
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
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,
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
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
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
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
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:
>
> >
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
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
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
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
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
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
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
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
...
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
...
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
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 - 100 of 328 matches
Mail list logo