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
Hi,
i have currently started a new django project where i have to deliver
html5 videos to a webbrowser but the videos are not allowed to remain
in the web folder.
so here is what i have:
def download(req, video_id, video_type):
ctype='';
if (video_type=='ogv'):
ct
Hi!
I have a lot of models in same app at my django app, can I group then
another way that app order?
I see:
Auth
Users
Sites
Sites
My app
Model 1
Model 2
Model 3
...
Model N
And like for example, Model 1&2 under "My app (Users)" tab. and 3 to N in
"My app (configuration)"
Th
Hi guys,
First of all, merry christmas for all of you ;)
I using an ajax approach to show the comments form. I need to mix this
approach with a common approach, this is not a problem for the preview
page because I can create app specific templates (i.e. "comments/app/
preview.html" instead of "co
hello list. I have a model like this
class Dcto(models.Model):
..
fk_dcto = models.ManyToManyField('self', blank=True, null=True)
this create a this internal table with thi
The first Release Candidate for the Django-CMS 2.1 was just released and is
ready for testing. Please keep in mind that this is a release candidate,
and not
a final release yet!
Download: http://pypi.python.org/pypi/django-cms/2.1.0.rc1
Documentation: http://django-cms.rtfd.org
Source: https://
to the first question, symmetrical=False, with this generate an
inverted information.
I want this.
id | from_dcto_id | to_dcto_id
x |old_dcto 1 | new_dcto
x |old_dcto 2 | new_dcto
---
Hello,
I have some content that is stored as models.TextField().
Content is mainly text but there should be option to add additional parsing.
Such as a code block [code] which should be formatting in some way.
But where would you best place this code ?
Inside the model view or are there options
finally I do this
--
class form(forms.ModelForm):
fk_dcto = forms.ModelMultipleChoiceField(queryset= ,
required=False, widget=forms.CheckboxSelectMultiple)
--
with this I can save with checkboxselectmultiple.
To define a correctly order to the many to manyfields in the
By default many to many fields on self are symmetric[1], yours can't
be (if A is up from B, B isn't up from A), so you need to specify
symmetrical=False. You'll also need to specify some related names
because they will clash.
You might want to rethink your model though anyway, I'm not convinced
th
I am having difficulty getting my custom command to run on schedule. I'm
using django-chronograph, but I can't seem to get it to run like it can
(successfully) from the command line. Before I go into the background of
this problem, I will state my question: H*ow might I run a custom management
Hi Alex,
django-admin-tools should solve all your problems with admin index
page.
https://bitbucket.org/izi/django-admin-tools/
On 24 дек, 17:48, Álex González wrote:
> Hi!
>
> I have a lot of models in same app at my django app, can I group then
> another way that app order?
>
> I see:
>
> Aut
I need to do a massive insertion of records in two tables "connectd" by
"foreignkey". Is there a way, using the Django db API, to do it.
e=Foo(...);e.save() seems too slow.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
I have two lists of values and I need to filter a queryset to only
rows in which a column's value is in one of these lists. The data is
not case consistent, so if I were comparing the column to a single
value I would use the "iexact" lookup type. Since I'm comparing to a
list of values I'm using
On Dec 24, 2010, at 9:26 AM, Silva Paulo wrote:
> I need to do a massive insertion of records in two tables "connectd" by
> "foreignkey". Is there a way, using the Django db API, to do it.
> e=Foo(...);e.save() seems too slow.
It's always going to be very slow to do inserts via the Django ORM
On Dec 24, 2010, at 11:12 AM, Tim Saylor wrote:
> Is there an alternative?
This is probably a good case for doing a raw query. You can then do something
along the lines of "WHERE lower(field) IN ('', '''...)". Depending on the
data, creating a functional index on "lower(field)" might help pe
ok, i am a step closer, i now implemented range requests:
def sendFileRange(req, contenttype, fname, delivername):
try:
fsize=os.path.getsize(fname)
except:
raise Http404
pos1=0
pos2=fsize-1
if req.META.has_key('HTTP_RANGE'):
This really is *not* a good way of doing things.
Unless you have a specific need to be streaming out via Python (for example,
on the fly stream modification, in which case I'd argue those bits of code
should be written as C extensions for performance), then I would advice
using nginx with the appr
I am using sqlite3. Tha data is in memory most of it after being read from a
zlib.compress of a cPickle.dumps of a class object on a file.
I was thinking of something like a method to store, for example, a list of
records in the db at once.
>From your answer I may conclude that I should use a "
19 matches
Mail list logo