Couldn't that potentially overwrite a value set by a different thread?
Dan
On Thu, Oct 27, 2011 at 7:13 AM, Kurtis Mullins wrote:
> umm, I'm not sure if "check-and-set" is some cache-specific lingo or not.
> But if you want to see if a value isn't set, check to see if it's None
> type... example
Hello,
I'm new to both Python and Django. A few months ago, I installed
Django on my mac (running Snow Leopard). I took me quite some time,
but I got it running. After that I didn't get around to doing anything
with it. A few weeks ago, I upgraded my mac to run Lion and now, when
I type import dja
Optimisation Model
Hi everyone,
I'm working on the optimization of the model of my app. The goal is to
limit the request to the database.
In this webapp every user can follow users (like twitter), and when
someone you follow publish an article, each followers reveive a mail.
I'm wondering what is
Does anyone have experience with the accuracy of GeoIP? I'm getting
locations that are wildly off...
When I plug in the IP from http://whatismyipaddress.com/ I get
somewhere in the middle of Kansas when I'm in Chicago.
On the other hand using a Google IP address (mentioned in the example
below) c
umm, I'm not sure if "check-and-set" is some cache-specific lingo or not.
But if you want to see if a value isn't set, check to see if it's None
type... example:
if cache.get('key') is None:
cache.set('key', 'value', cache_seconds)
Sorry if that's not at all what you're talking about :)
On W
Hello Ethan,
Welcome to Django, the web framework for people with deadlines and great taste!
Django absolutely does not require access to the builtin (or contrib,
as we call it on djangoland) admin app in order for you to configure
models.
A model is a representation of a way to store data, whic
Then again, you can't assume an email to not have spaces as "John
Doe"@example.com is a valid email per the RFC.
If you *really* need flexibility, have a UserProfile model with a
OneToOne relation to User and your imagination will be the only limit.
Cheers,
AT
On 10/26/11, Kurtis Mullins wrote
Hey all,
I am a brand new developer to django and had a question. I've
successfully installed django on my remote ubuntu server and have
already started going through tutorials. I notice that they all
require access of the admin console through a browser in order to
configure models etc. If i'm
Can I do check-and-set operations using Django's cache api?
Thanks
D.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-use
On Wed, Oct 26, 2011 at 5:14 PM, sakthi wrote:
> i installed mod_python and
that's where you got it wrong.
mod_python is obsolete and deprecated. the supported way to deploy
python apps with apache is mod_wsgi. check
https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/
--
I need to be able to output the table creation code but I don't
necessarily have access to a database.
Why does simply outputting the SQL require first connection to a
database?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
Hi all,
I am running Apache in linux. I need to deploy my django app to it, so
i installed mod_python and configured the apache according to it. Then
I got an annoying error at the first page, that I couldn't figure out.
Please suggest a solution.
The error is:
ImportError at /gpa
No module name
Check out userena as well. But a custom authentication back-end was the
approach I originally took. And to answer your question, yes -- your chances
of finding people w/ email addresses longer than 75 chars are less than
finding people w/ 30 chars -- but still a limitation none-the-less as there
is
OK;
thanks I was afraid it was not entirely straightforward.
On Oct 26, 10:52 pm, Donald Stufft wrote:
> This is a known limitation and it's something that people _want_ to get fixed
> (but just merely increasing the length isn't helpful, because soon someone
> comes along with the new length
On Wed, Oct 26, 2011 at 6:52 PM, Donald Stufft wrote:
> The other method is to create your own auth handler (...)
>
http://djangosnippets.org/snippets/1001/
Cheers,
AT
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
This is a known limitation and it's something that people _want_ to get fixed
(but just merely increasing the length isn't helpful, because soon someone
comes along with the new length + 1 and the same problem occurs). The issue is
that the django.contrib.auth User model while providing a minimu
Hello,
I have been using a (in general quite popular I think ...) convention
where the e-mail address has been used as username. I have solved this
by asking the user for an e-mail address and a password, and then used
the supplied e-mail address both as username and e-mail address when
instantiat
Hello All,
Am pretty new to Django. I am trying to create a form which will upload an
image and then enable the user to crop visually (using JCrop plugin). Am
not completely sure on how to implement this in Django. I am thinking of
first saving the uploaded image into the disk as a jpeg file and th
Hey Guys,
I hate to bother you again. But -- is there a way to get the currently
selected data from this set? For example, a user hits the page and all
choices are displayed fine. But, they pick some choices. They haven't
finished editing the form or maybe they made a mistake, anyways they land in
Thanks David,
Yes I've read and re-read that page. I think my problem is coming from
Apache though.
It looks like my next step is more research on apache authorization from a
domain.
thanks,
--Tim
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
On Wed, Oct 26, 2011 at 4:19 PM, Tom Evans wrote:
> Sure, all cars run on top of tarmac,
> but you are unlikely to find a tarmac specialist on a car forum, you
> are better off asking in a more appropriate place.
Happy to bite on that one and am chuckling away at that.
Databases are the engines
My bad, I found the deliberate error!
--
View this message in context:
http://old.nabble.com/no-return-from-image_set.all-yet-code-almost-identical-tp32723239p32725680.html
Sent from the django-users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to
I just change some style of css, but after runserver, the css is
nothing change.
I not only deleted the image file in the static folder, but deleted
whole static folder and the website still show the image and css.
only use in localhost, even doesn't deploy to server yet.
I don't know why that happ
update I have moved all the classes into the one model, image_sets ...
from django.db import models
from smartpages.models import SmartPage
POSITIONCHOICES = [
('1', 'Top'),
('2', 'Bottom')
]
class Set(models.Model):
assigned_page = models.ForeignKey(SmartPage, help_text='The s
There is problem in this project
I use Auth User and foreign key in anther table "geoFeeds" and when
adding data to table gepFeed am error happened
column user_id is not unique
when changing the userId it add one time but the second time it fails
and give this error I don't know why
this is the
Hi,
I think you need to be more specific. What do you mean with "i want to
be able to view the page as i edit it". What page? Do you mean what
you see in the browser? If so, you need something like
aloha editor (http://aloha-editor.org/) and you need to integrate it
in your app.
Best regards,
O
Apache pig is a scripting tool to analyze data in hadoop clusters
Sent from Yahoo! Mail on Android
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this gro
Awesome! Thank you.
On Tue, Oct 25, 2011 at 8:10 AM, psbanka wrote:
> In the current Django 1.3 documentation on templates
> (https://docs.djangoproject.com/en/1.3/topics/templates/#for-template-
> blocks), the documentation mentions the following:
>
> "The auto-escaping tag passes its effect on
If no database requirement then you dont a model just a view and a template
but I have no idea what pig!. is
damola oyeniyi wrote:
>
> Hi,
>
> I am trying to create a simple query page using django and pig!. I would
> not be needing a database, so I'm not sure if a model is involved. My pig
>
In my opinion as a starter too, I don't think you need a model if you are
not using a database.
Others could have their opinions.
On 26 Oct 2011 16:37, "damola oyeniyi" wrote:
> Hi,
>
> I am trying to create a simple query page using django and pig!. I would
> not be needing a database, so I'm n
Hi,
I am trying to create a simple query page using django and pig!. I would not be
needing a database, so I'm not sure if a model is involved. My pig script will
crunch multiple files containing lots of lines with data of the same format. I
want to try and display results from that query in a
Hi,
I wonder how you all combine media of forms or other stuff in your page.
I read here one solution could be writing a template tag or filter to combine
the media objects by simply using the + operator.
So how are you constructing your pages, if you are using templates? So far I
used forms fo
On Wed, Oct 26, 2011 at 3:59 PM, Gabriela wrote:
> I need to implemente Asynchornous multimaster replication
> implemented in Linux and Windows OS
>
> Bucardo is a great option but it doesnt works in Windows
>
> Any help would be welcome, Im new in this and I need a solution, Im
> stuck installing
I need to implemente Asynchornous multimaster replication
implemented in Linux and Windows OS
Bucardo is a great option but it doesnt works in Windows
Any help would be welcome, Im new in this and I need a solution, Im
stuck installing softwares and configuring URLs and IPs
Cheers
Gabi
On Oct 2
On Wed, Oct 26, 2011 at 3:38 PM, Gabriela wrote:
> Thanks Tom,
>
> so Django dont allow to make replication?
>
Django is a web application framework, database replication is
orthogonal to that.
My current setup has a multi data centre, multi master replication,
with a couple of read slaves in ea
Can you suggest me , if you know, any software replicator, I had only
configure with RubyRep and SymmetricDS but I need more options? I have
been trying wit DBReplicator but is impossible. Do you handle this
theme about replication?
Cheers
On Oct 26, 4:38 pm, Gabriela wrote:
> Thanks Tom,
>
> so
Thanks Tom,
so Django dont allow to make replication?
On Oct 26, 4:32 pm, Tom Evans wrote:
> On Wed, Oct 26, 2011 at 3:24 PM, Gabriela wrote:
> > I need to synchronize multiple databases, i have readed the
> >https://docs.djangoproject.com/en/1.3/topics/db/multi-db/where they
> > explain how to
AFAIK, it's also doable with apache, with little modification from the code
I provided. I just haven't had the chance to investigate the possibilities
yet.
Before I say anything else, I must admit I completely forgot to provide a
very important file for the upload progress thingy: the javascript f
On Wed, Oct 26, 2011 at 3:24 PM, Gabriela wrote:
> I need to synchronize multiple databases, i have readed the
> https://docs.djangoproject.com/en/1.3/topics/db/multi-db/ where they
> explain how to make this.
>
>
> but i dont understand what do they refer with 'myapp' and 'other', are
> this tabl
I need to synchronize multiple databases, i have readed the
https://docs.djangoproject.com/en/1.3/topics/db/multi-db/ where they
explain how to make this.
but i dont understand what do they refer with 'myapp' and 'other', are
this tables from the database? I dont understand what do they mean.
I
Thanks for your reply and the detailed information.
Your solution looks great, and I guess that using a web server-based
solution (in contrast to a Django-based one) is much more efficient.
What I do not understand in your setup is why, if you have
HttpUploadProgressModule installed, you do need a
Are you using nginx by any chance? I use nginx and my setup is as follows:
A upload.py with the custom handler and a view to yield progress result as
json [1], a template with some javascript [2] to fetch the json-formatted
progress result, some lines in nginx.conf [3] to tell it to keep track of
Dear all,
In order to provide progress feedback of file uploads I needed to
install an upload handler for a specific view. This is documented for
"classical" views at
https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#modifying-upload-handlers-on-the-fly
For generic views, howeve
hi, guys,
try it .
..
return HttpResponseRedirect(reverse('myAppFront.views.article', None, None,
{'id': id}))
2011/10/25 nicolas HERSOG
> God you'r right !
>
> Thanks to your answer i found why my "named" url didn't work.
>
> I wrote this in my urls.py :
> (r'^article/(?P\d+)/$', myAp
The problem:
imsettop and imsetbottrom return an image_set.all
headset doesnt, yet the code to get all three are almost identical
can anyone spot the error please?
I have 2 models going through a view to a template
simple models:
model image_sets
from django.db import models
from smartpages.mo
Hi,
this is just a question to help me understand queryset usage a
little better.
If I had two models, unrelated via foreignkey etc, but which shared a
common field, e.g.
class modelOne(models.Model):
a =
b =
c =
class modelTwo(models.Model):
c =
On Tuesday, 25 October 2011 23:56:35 UTC+1, trubliphone wrote:
>
> I am just banging my head against the wall and making no progress with
> this issue.
>
> I am trying to create a view that nests forms of related models. I had
> thought that inlineformset_factory would do the trick, but I clearl
Hi all
Django 1.3's blocktrans tag is documented as still supporting 1.2's
more verbose syntax. However, if you attempt a plural translation, it
barfs. More importantly, it rejects a format that 1.2 accepts, and
accepts a format that 1.2 rejects.
This format is rejected by 1.2 and accepted by 1.3
48 matches
Mail list logo