On 29-11-11 21:05, Andre Lopes wrote:
To put things working I should replace:
[code]
root /path/to/test/hello;
[/code]
For the path where I have my Django Project?
You won't even use that root. That's for serving regular static files
and that's only needed for the /static_media and /med
Hello everyone
I'm finally starting the release process for FeinCMS v1.5 (sorry for
waiting so long).
The release is available at the following places:
PyPI: http://pypi.python.org/pypi/FeinCMS
Github: https://github.com/feincms/feincms
Documentation:
http://readthedocs.org/docs/feincms-django-
>Probably not a problem. How are people ending up on those URLS? Not by
>guessing.
That's just the point here, to avoid crashing because some "smart"
people tried to play with urls. So with only a get or 404 there is no
way to know if the category/items does indeed exist or if the user
played with
Hi,
> That's why I'm
> considering checking at the beginning of the view with a list/dict
> filled with category names and one filled with item names to make sure
> that the category is in the list/dict and same for the item before
> hitting the database, and if not respond with a 404.
As Reinout
On 11/29/2011 11:45 AM, Tom Christie wrote:
> What's wrong with just creating them in the .setUp()?
>
> Don't sweat the small amount of time it'll take to re-create the users
> on each test run, it's almost certainly not worth worrying about.
>
Well this is what I'm doing at the moment.
And I th
On 11/29/2011 12:34 PM, Piotr Zalewa wrote:
> I use all solutions, depending on the needs.
>
> When I'm testing a usage of many objects I use fixtures (also with users
> as I'm "pretending" that users created them)
>
> When there is a test involving a user I create this object, either in
> test o
I started implementing tests for my django application.
I anticipate two kind of tests:
1.) Unit tests
---
The unit tests should be as the uni tests are implemented in django.
They should be 'atomic' independent, could be executed in any order and
should always yield the same resu
Hello,
I would like to get control on the password change form of the admin
site.
I put the following code in the admin.py:
class MyUserAdmin(UserAdmin):
def save_model(self, request, obj, form, change):
...
admin.site.unregister(User)
admin.site.register(User, MyUserAdmin)
The problem is t
Hi, I am finally going to finish the project started and where I end
up liking this xD Django that the problem I have is the clearing of a
field.
I have the following tables.
class Proyectos(models.Model):
titulo=models.CharField(max_length=100)
creacion=models.DateField(default=datetime.d
Hi,
after:
exp.experimentos.remove(request.POST.get('experimentosDelete'))
You should do:
exp.save()
I hope this helps.
Salvatore.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.googl
Hi, I recently launched a Django project on a Linode 1024.
I serve django with nginx, run mysql, and a bunch of other stuff. I
routinely have about 500MB of free RAM. I wouldn't recommend a Linode 512,
you will swap a lot.
--
You received this message because you are subscribed to the Google G
On Wed, Nov 30, 2011 at 11:42 AM, jose osuna perez
wrote:
> Hi, I am finally going to finish the project started and where I end
> up liking this xD Django that the problem I have is the clearing of a
> field.
> ...
> I try like this:
>
> if request.POST.get('experimentosDelete','')!='':
>
Hello,
>As Reinout suggested you should have a CategoryModel which you can check >if a
>Category exists and the get the items of show that the category does not
>>exist or 404 if somebody entered a wrong URL/Category. Checking against the
>>DB is probably the same thing you want to do, but it
I try to make this using delete, remove.. Also I using too
if request.POST.get('experimentosDelete','')!='':
for i in
request.POST.getlist('experimentosDelete'):
exp=Experimentos.objects.get(proyecto=datos,id=i)
exp.experimentos=[]
...
> I don't quite understand what you mean here. You want me to create a
> CategoryModel of which all my Category models should be derived ? If
> that's it, how can it help me to determine if URL is valid or not, I
> can't see how that works.
Sorry, it was DrBloodmoney, who wrote this:
> class Cat
An access database should not be used for a production site. There are
various ways/tools for migrating from access to other databases.
Search for how to export from ms access and it should turn up a lot of
different methods for migrating to mysql or postresql.
Access to MySQL example - http://ww
Hi,
I'm serving to production a Django website with Nginx + Gunicorn with
virtualenv.
My dumb question is: I must to install supervisord in my virtualenv or
outside my virtualenv?
Best Regards,
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi Guys,
at first: please excuse my bad english. I hope you can understand what
i mean.
i just started working with Django and used the tutorial @
djangoproject.com.
After i completed it i tried to rebuild the djangotutorial for
wikicamp shown on ShowMeDo (
http://showmedo.com/videotutorials/vide
On Wed, Nov 30, 2011 at 9:35 AM, Andre Lopes wrote:
> Hi,
>
> I'm serving to production a Django website with Nginx + Gunicorn with
> virtualenv.
>
> My dumb question is: I must to install supervisord in my virtualenv or
> outside my virtualenv?
You should just install supervisord to your system
> Sorry, it was DrBloodmoney, who wrote this:
>
> > class Category(models.Model):
> > name = models.CharField # should be unique
>
> > class Item(models.Model):
> > name = models.CharField()
> > category = models.ForeignKey(Category, related_name='items’)
>
Oh that, yes I intended to do
Hi,
I have made several projects now for internal use and some of the functionality
keeps coming back.
For instance, language selection, user authentication, ad syncronization of
users.
I want to put these in seperate apps that I can easily install in a project.
All projects use virtualenv.
M
Thank you for the reply.
Best Regards,
On Wed, Nov 30, 2011 at 2:51 PM, DrBloodmoney wrote:
> On Wed, Nov 30, 2011 at 9:35 AM, Andre Lopes wrote:
>> Hi,
>>
>> I'm serving to production a Django website with Nginx + Gunicorn with
>> virtualenv.
>>
>> My dumb question is: I must to install super
Well that should work pretty well with an SQL database. But as I said
my database is a NoSQL one, here I need to have one "table" per
category. So creating another Categorylist table just for fun and put
all the category names into, then hit it in order to check if the
category exists just seems w
> Well I agree that if the category doesn't exist he will get a 404. But
> if the Category exists and there are no items in the 'table', it will
> not be empty, it will also raise a 404 too. That's why I wrote :
>
>> However with that, there is no way for example to make a difference
>> between
Hi,
I am working on a website with many pages (in the hundreds).
I have recreated the website front page on a new server with the
desired new functionality implemented in Python and Django.
All seems good, but what I need to know is what is the easiest/
quickest way of moving across the rest o
u can test by yourself.
yes, i don't know the answer, neather
在 2011-11-27 上午12:08,"Addy Yeow" 写道:
> If I use cache_page() decorator for my view function, will the TIMEOUT be
> able to take precedence over CACHE_MIDDLEWARE_SECONDS?
>
> In my settings.py,
>
> CACHES = {
> 'default': {
>
Try flatpages
https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/
-Juande
On Wed, 30 Nov 2011 08:46:28 -0800 (PST), marjenni wrote:
Hi,
I am working on a website with many pages (in the hundreds).
I have recreated the website front page on a new server with the
desired new functio
Do the pages that you're moving across to the new site need to be
change-able through the admin system, or are they static HTML that won't
change?
Only use flatpages if you want them to be editable through the web.
Tim.
On 30/11/11 17:09, Juan de Dios Manjon Perez wrote:
Try flatpages https:
Hello Mark,
On Wednesday, November 30, 2011 8:46:28 AM UTC-8, marjenni wrote:
All seems good, but what I need to know is what is the easiest/
> quickest way of moving across the rest of the website onto this new
> server? Will I need an entry for each page in the urls file?
>
It will be hard for
I have some test fixtures with scenarios under test. Later, I need to
migrate (with South) the DB schema around, which of cours necessitates
changing domain and test code.
A common problem I run into, though, is that I also need to migrate
the data in my fixtures. It is possible to create a new
On Sat, Nov 26, 2011 at 4:07 PM, Addy Yeow wrote:
> If I use cache_page() decorator for my view function, will the TIMEOUT be
> able to take precedence over CACHE_MIDDLEWARE_SECONDS?
>
> In my settings.py,
>
> CACHES = {
> 'default': {
> 'BACKEND': 'django.core.cache.backends.filebased
Build it on 512 Linode, upgrade to 1024 if necessary. Linode are so
far ahead of the competition Price/Performance ratio, I wouldn't
bother with anyone else (VPS).
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I am working through some authentication examples.
When I created my first database, I "recall" entering a username and
password, but entering what I recall was the correct input is not
authenticating.
Is there an easy way to reset or retrieve the username and password
that was used to create the
You can't retrieve the password, as that would be a security flaw. The
security works by hashing the password entered into the login form, and
comparing the hashed version with the one stored on the database. Hash
functions are quick to run one way, but difficult to reverse, hence it's
diffic
On Wed, Nov 30, 2011 at 10:22 AM, Tim Sawyer wrote:
> You can't retrieve the password, as that would be a security flaw. The
> security works by hashing the password entered into the login form, and
> comparing the hashed version with the one stored on the database. Hash
> functions are quick to
> > Well I agree that if the category doesn't exist he will get a 404. But
> > if the Category exists and there are no items in the 'table', it will
> > not be empty, it will also raise a 404 too. That's why I wrote :
>
> >> However with that, there is no way for example to make a difference
> >>
Thanks for the link Tom.
I'll read that in details later (it's a little bit complicated) an for
my POC I'll just use a not DRY method !!! :-)
Regards
Youpsla
On 28 nov, 17:16, Tom Evans wrote:
> On Mon, Nov 28, 2011 at 4:07 PM, youpsla wrote:
> > Hello,
> > in my code, I like to overrride the
On Wed, Nov 30, 2011 at 2:48 AM, Gelonida N wrote:
> 2.) Stress / System tests
> --
>
These are often called 'integration tests', and are used to test whether
all of the (properly unit-tested) components of the system actually
function properly when assembled toge
Hi,
I need to track visitors with Google Analytics. What should I use to
get Google Analytics working on Django?
What is my best choice?
Best Regards,
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
A quick Google revealed that there is already a
django-google-analytics package, why not try to check it out?
otherwise you could as last resort just put their tracking code on
your master template and be done with it.
http://code.google.com/p/django-google-analytics/
Regards,
Carlos Ruvalcaba
-
Google gives you a small piece of javascript that you need to insert
into your pages to track them. So, all you need to do is to insert
that code into your templates...
On 11/30/11, Carlos Daniel Ruvalcaba Valenzuela wrote:
> A quick Google revealed that there is already a
> django-google-analyt
* Andre Lopes [2011-11-30 20:25+]:
> I need to track visitors with Google Analytics. What should I use to
> get Google Analytics working on Django?
Are you serious?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
Is there anyone available late next week to give a webinar on django
south? No need for a detailed presentation, but more to be around to
answer questions (I think that 9am EST would cover most time zones)?
If so, please contact me off list about dates/times/compensation.
The goal would be to of
We just put out a post about feature flipping using Gargoyle or Waffle:
http://tech.yipit.com/2011/11/30/getting-to-continuous-deployment-in-django-feature-flipping/
---
Adam Nelson
CTO, Yipit
Join the Yipit Team and work with Python, Django, MongoDB, jQuery,
Backbone.js and Sass @ http://yipit.co
There's a free access to mysql converter; try google; I forgot the name
and have it on a different computer than this one. Contact list again
if you cannot find it and I'll look harder.
-Original Message-
From: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] On Behalf
Hi Django users,
So I have two servers behind a vip. I currently have it setup so if
one server goes down it uses the other http server which works great.
However I tried to set up mysql master - master and I keep getting
duplicate key errors and grind the process to a hault and causes a
real head
Folks-
We just made the first general public release of LocalWiki, a really
easy to use wiki that focuses on geographic communities. It's all
Django-based. Check it out:
http://localwiki.org
Django devs will probably want to check out http://dev.localwiki.org
and follow our 'manual' installati
Hi,ne
Thank you for your quick reply :)
Actually, I am a little concerned that I may have a lot of work ahead
of me!
I have an existing php based website that is used to advertise holiday
accommodation, and the pages that contain advert listings are
dynamically recreated every 24 hours.
I nee
I'm trying to use request.POST.copy() to get a hidden field in an html
template. The hidden field looks like:
I also tried:
In my view.py I have:
postdata = request.POST.copy()
url = str(postdata.get('url'))
The value of url is None. Is there an additional trick to this?
Tha
On Wed, Nov 30, 2011 at 7:43 PM, jim wrote:
> I'm trying to use request.POST.copy() to get a hidden field in an html
> template. The hidden field looks like:
>
>
>
> I also tried:
>
>
>
> In my view.py I have:
>
> postdata = request.POST.copy()
> url = str(postdata.get('url'))
>
> Th
Dear All,
In one of my django app, I extended the django User model and created
a new ‘UserProfile ‘ model. But when I’m trying to add new user
through this model in admin page, the URL is not redirecting to
successful page, instead its stopped on ‘admin/auth/user/add/?
_popup=1’ this URL. (user i
Hi guys,
I am trying to load to my application to production environment,
It will work on test server, How to do this please guide me.
my settings file:-
'registration',
'fileupload',
'password_required',
those application cant load at production time.
error says:-
No module named r
52 matches
Mail list logo