nique together, use (as an inner class inside your
model class):
class Meta:
unique_together = [("datasetID","filename","timeOfRemoteMOD")]
Remco Gerlich
On Jan 15, 2008 12:52 PM, Nader <[EMAIL PROTECTED]> wrote:
>
> Hallo,
>
> I ha
On Jan 28, 2008 5:28 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> def url_head(request):
>c=urllib.urlopen(request.GET['url'])
>content=c.read()
>
http://example.com/url_head?url=file:/etc/passwd
It's very important to do some basic sanity checking o
Hi,
Apparently you want an empty list if query has a value, and a list with one
element otherwise (so the "if query" works).
query_string = request.POST.get('q', '')
if query_string:
query = [ query_string ]
else:
query = []
Reading the Python tutorial probably wouldn't hurt.
Remco
On
it's stable enough to recommend to people that they just use
trunk, it's stable enough to release a 0.97? Any huge issue that comes
up can always be a 0.97.x. All the objections earlier also apply to
people using trunk.
Remco Gerlich
--~--~-~--~~~---~--~
title
and slug.
I think it should be the first. But I was wondering what other approaches
others have taken, I can't be the first one with this sort of issue.
Greetings,
Remco Gerlich
--~--~-~--~~~---~--~~
You received this message because you are
log2(36 ** 32) =~ about 165 bits of entropy (fewer when using the PRNG).
Greetings,
Remco Gerlich
On Thu, Apr 28, 2016 at 7:23 AM, Arun S wrote:
>
> Hi,
>
> Just trying to get a few answers on the Session IDs in Django.
>
> > how does Django Generate Session IDs/Sessi
Do you have a database router set up to tell Django which models are stored
in which database?
Greetings,
Remco Gerlich
On Thu, Jun 9, 2016 at 2:13 PM, Galil wrote:
> Hello,
>
> I am using two databses for my Django app and one of them is an existing
> MySQL database:
&
Why is it a problem if the URLs are guessable? In a vacuum, I would
consider that a good thing.
Remco Gerlich
On Wed, Jul 6, 2016 at 4:09 PM, 'davidt' via Django users <
django-users@googlegroups.com> wrote:
> I am looking for advice with regard to the following:
>
>
If it's a single database and a single field, is it feasible to just add
the field by hand using SQL?
Greetings,
Remco Gerlich
On Thu, Jul 7, 2016 at 1:05 PM, bobhaugen wrote:
> We're upgrading an app from django 1.4 step-by-step through all the
> versions at least to 1.8. Got
atabase solution with a router, one
database for the Django-internal tables that want to be able to migrate,
and one for your company's data that always returns allow_migrate False?
Greetings,
Remco Gerlich
--
You received this message because you are subscribed to the Google Groups
"
Do you use a webserver "in front" of Django, like Nginx or Apache?
What we do:
- In *development* (when DEBUG=True), use django.views.static.serve to
serve a file:
https://docs.djangoproject.com/en/1.8/ref/views/#django.views.static.serve
- In *production*, let Django do what it needs to do (like
According to the error, your pattern starts with $, which is an obvious
mistake.
But the "url.py" you quote has ^.
Maybe it was using an old version, or you haven't copied the right one.
Greetings,
Remco Gerlich
On Sat, Sep 19, 2015 at 9:42 AM, sankar vasu wrote:
> Hi Al
he current situation, and then apply new
migrations from there...
Greetings,
Remco Gerlich
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to d
do the API requests in the background using Celery, and show
the results some other way.
Remco Gerlich
On Tue, Nov 3, 2015 at 12:44 PM, kk wrote:
> Dear all,
> I wish to know if I need to do some thing special for consuming a RESTfull
> server from some other provider?
> What should
One, from that error message alone I can't figure out what is happening and
why when you run tests, so I can't help there.
But two: you don't have a ManyToManyField, you have TWO ManyToManyFields.
If you define a many to many field on one model, than it's automatically
also defined on the other (i
t; to
listen to all interfaces.
Greetings,
Remco Gerlich
On Sat, Dec 5, 2015 at 10:07 PM, bobhaugen wrote:
> Our friend Chris Troutner installed our Django 1.4 app on Windows in
> a VirtualBox running Ubuntu.
>
> He could access the Django app from the browser in Ubuntu, but not
If it is the exception tracebacks you are after, consider setting up a
Sentry ( https://getsentry.com/ ) server to send the error / exception logs
of all your sites to. Whenever something bad happens, it'll show up there,
with full tracebacks.
Greetings,
Remco Gerlich
On Mon, Jan 4, 2016 at
om that old job, and they take a
while to adjust to the new tools.
First let them get productive with what exists, _then_ let them gather
real statistics about real problems when they want to change something.
You can have scalibility issues and solve them with whatever framework,
Django included
.
It's key to do this at the beginning of the project, since it's really hard
to migrate to this later. You can always change your custom model, but
switching from the default to a custom model is nontrivial.
Remco Gerlich
On Fri, Feb 5, 2016 at 9:22 PM, Uri Even-Chen wrote:
the Python/Django code
Windows compatible pretty easily, but not the background software, so it
will be a Windows laptop that will run everything.
What's the best way to run Django as a service under Windows? Is Apache /
ModWSGI feasible?
Remco Gerlich
--
You received this message because yo
We thought about that and it's certainly an option, but 1) the
communication with the background tasks running on the Windows host is
going to be tricky and 2) I have no experience with running it as a service.
So I'd prefer running on Windows directly.
Remco Gerlich
On Tue, Feb 16,
;data": 2, "name": '', "searchable": True, "orderable": True,
"search": {"value": '', "regex": False}},
]
Does anybody know of any Python or Django app / library that does this?
Would it be possible to do
e are dockers and virtual machines et cetera, but
I'm optimistic we can simply use Windows.
Thanks,
Remco Gerlich
On Tue, Feb 16, 2016 at 10:34 PM, Mike Dewhirst
wrote:
> I agree with James. Apache and mod_wsgi is fine on Windows. There may be
> some Windows-specific Apache conf tw
thing like that already.
Greetings,
Remco
On Fri, Feb 26, 2016 at 11:24 AM, James Schneider
wrote:
>
> On Feb 26, 2016 1:21 AM, "Remco Gerlich" wrote:
> >
> > I need to work with DataTables, a jQuery-plugin for sortable HTML tables.
> >
> > It se
24 matches
Mail list logo