Re: ImportError on apache server

2012-10-23 Thread Dae_James
I have solved this problem. Just visit 
http://www.lfd.uci.edu/~gohlke/pythonlibs/ and find a proper PIL library. 
Then reinstall PIL. 
Even though the library version which I find 
on http://www.lfd.uci.edu/~gohlke/pythonlibs/ and makes my program work 
normally is the same as the version I formerly installed. And I don't know 
why. Finally, it works.


在 2012年10月22日星期一UTC+8下午11时22分59秒,Dae_James写道:
>
> When I run my website on apache, the error as the following picture shows 
> happened. However, when I run it on development server, the error doesn't 
> happened.
>
>
> 
>
>

-- 
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.google.com/d/msg/django-users/-/YzV5w91KRugJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Import data from csv file to database from django admin side

2012-10-23 Thread Madhu
Hi!
I tried to import the data from csv file to database.
I refer below link
https://groups.google.com/forum/#!msg/django-users/usjC-X9-p5E/94bf4tw3Ni8J

I have create the models and view same like above link. 
I have create the "import" buttom on admin side by changing  
"app/change_list" html. On the "import" onclick method i call the my import 
view. But it gives me error as 
'DataInput' object has no attribute 'cleaned_data' And form.is_valid() 
always return false.

-- 
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.google.com/d/msg/django-users/-/s-RFFmtwKDAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



xml dom (minidom) and python

2012-10-23 Thread MikeKJ
I cant see the wood for the trees here. help

I got this big string of xml from a url which is of data associated to a 
boat and many boats
the tags are 'VehicleRemarketingBoatLineItem' which is the overall tag for 
a boat set of data whcih contains various tags and tag groups, so

dom = minidom.parse(urllib2.urlopen(url))
stuff{}  // I want a dict of pairs
for x in dom.getElementsByTagName('VehicleRemarketingBoatLineItem'):   
//1
for node in 
x.getElementsByTagName('VehicleRemarketingBoat'):  //2
name_list = node.getElementsByTagName('MakeString')
for n in name_list:
name = n.childNodes[0].nodeValue
stuff['name'] =  name

if I raise NameError at for loop 1 I get only the last boat and if at 2 I 
get only the 1st boat so I dont think I am indexing the dict population?
any light shone on this would be much appreciated

the xml stream can be seen from this url 
https://services.boatwizard.com/bridge/events/ae0324ff-e1a5-4a77-9783-f41248bfa975/boats?status=on
 


this is the whole whole sorry lump of code so far (its a lot)

from xml.dom import minidom
from xml.dom.minidom import parseString
url = 
"https://services.boatwizard.com/bridge/events/ae0324ff-e1a5-4a77-9783-f41248bfa975/boats?status=on";

dom = minidom.parse(urllib2.urlopen(url))

stuff = {}
for x in dom.getElementsByTagName('VehicleRemarketingBoatLineItem'):
for node in x.getElementsByTagName('VehicleRemarketingBoat'):
name_list = node.getElementsByTagName('MakeString')
for n in name_list:
name = n.childNodes[0].nodeValue
stuff['name'] =  name
year_list = node.getElementsByTagName('ModelYear')
for y in year_list:
year = y.childNodes[0].nodeValue
stuff['year'] = year
model_list = node.getElementsByTagName('Model')
for m in model_list:
model = m.childNodes[0].nodeValue
stuff['model'] = model
length_group = node.getElementsByTagName('BoatLengthGroup')
for x in length_group:
n_l = node.getElementsByTagName('BoatLengthCode')[:1]
for l in n_l:
length_code = l.childNodes[0].nodeValue
stuff['length_code'] = length_code
nlm = node.getElementsByTagName('BoatLengthMeasure')[:1]
for lm in nlm:
nominal_length = lm.childNodes[0].nodeValue
stuff['nominal_length'] = nominal_length
loa_list = node.getElementsByTagName('BoatLengthCode')[:2]
for loa in loa_list:
loa_code = loa.childNodes[0].nodeValue
stuff['loa_code'] = loa_code
loa_measure_list = 
node.getElementsByTagName('BoatLengthMeasure')[:2]
for lm in loa_measure_list:
loa_measure = lm.childNodes[0].nodeValue
stuff['loa_measure'] = loa_measure
l_o_list = node.getElementsByTagName('BoatLengthCode')[:3]
for loo in l_o_list:
length_overall_code = loo.childNodes[0].nodeValue
stuff['length_overall_code'] = length_overall_code

l_o_measure_list = 
node.getElementsByTagName('BoatLengthMeasure')[:3]
for lo in l_o_measure_list:
length_overall_measure = lo.childNodes[0].nodeValue
stuff['length_overall_measure'] = length_overall_measure
bridge_list = 
node.getElementsByTagName('BridgeClearanceMeasure')
for bl in bridge_list:
bridge_clearance = bl.childNodes[0].nodeValue
stuff['bridge_clearance'] = bridge_clearance
beam_list  = node.getElementsByTagName('BeamMeasure')
for bm in beam_list:
beam = bm.childNodes[0].nodeValue
stuff['beam'] = beam
fuel_list  = 
node.getElementsByTagName('FuelTankCapacityMeasure')
for f in fuel_list:
fuel_capacity = f.childNodes[0].nodeValue
stuff['fuel_capacity'] = fuel_capacity
hold_list  = 
node.getElementsByTagName('HoldingTankCapacityMeasure')
for h in hold_list:
hold_capacity = f.childNodes[0].nodeValue
stuff['hold_capacity'] = hold_capacity
water_list  = 
node.getElementsByTagName('WaterTankCapacityMeasure')
for w in water_list:
water_capacity = w.childNodes[0].nodeValue
stuff['water_capacity'] = water_capacity
cat_code_list  = node.getElementsByTagName('BoatCategoryCode')
for c in cat_code_list:
category_code = c.childNodes[0].nodeValue
stuff['category_code'] = category_code
boat_class_group = node.getElementsByTa

xml dom (minidom) and python UPDATE

2012-10-23 Thread MikeKJ
Ok so I have realised that what I think I  need is a dict of dicts
so far I have a dict, stuff which will be populated by boat and engine
BUT it doesnt seem to work using
for z in [boat, engine]:
stuff.update(z)
to populate stuff but still seem to be getting a single boat result and no 
engine dict data 

from xml.dom import minidom
from xml.dom.minidom import parseString
url = 
"https://services.boatwizard.com/bridge/events/ae0324ff-e1a5-4a77-9783-f41248bfa975/boats?status=on";
dom = minidom.parse(urllib2.urlopen(url))

stuff = {}
for x in dom.getElementsByTagName('VehicleRemarketingBoatLineItem'):
boat = {}
for node in x.getElementsByTagName('VehicleRemarketingBoat'):
name_list = node.getElementsByTagName('MakeString')
for n in name_list:
name = n.childNodes[0].nodeValue
boat['name'] =  name
year_list = node.getElementsByTagName('ModelYear')
for y in year_list:
year = y.childNodes[0].nodeValue
boat['year'] = year
model_list = node.getElementsByTagName('Model')
for m in model_list:
model = m.childNodes[0].nodeValue
boat['model'] = model
length_group = node.getElementsByTagName('BoatLengthGroup')
for x in length_group:
n_l = node.getElementsByTagName('BoatLengthCode')[:1]
for l in n_l:
length_code = l.childNodes[0].nodeValue
boat['length_code'] = length_code
nlm = node.getElementsByTagName('BoatLengthMeasure')[:1]
for lm in nlm:
nominal_length = lm.childNodes[0].nodeValue
boat['nominal_length'] = nominal_length
loa_list = node.getElementsByTagName('BoatLengthCode')[:2]
for loa in loa_list:
loa_code = loa.childNodes[0].nodeValue
boat['loa_code'] = loa_code
loa_measure_list = 
node.getElementsByTagName('BoatLengthMeasure')[:2]
for lm in loa_measure_list:
loa_measure = lm.childNodes[0].nodeValue
boat['loa_measure'] = loa_measure
l_o_list = node.getElementsByTagName('BoatLengthCode')[:3]
for loo in l_o_list:
length_overall_code = loo.childNodes[0].nodeValue
boat['length_overall_code'] = length_overall_code
l_o_measure_list = 
node.getElementsByTagName('BoatLengthMeasure')[:3]
for lo in l_o_measure_list:
length_overall_measure = lo.childNodes[0].nodeValue
boat['length_overall_measure'] = length_overall_measure
bridge_list = 
node.getElementsByTagName('BridgeClearanceMeasure')
for bl in bridge_list:
bridge_clearance = bl.childNodes[0].nodeValue
boat['bridge_clearance'] = bridge_clearance
beam_list  = node.getElementsByTagName('BeamMeasure')
for bm in beam_list:
beam = bm.childNodes[0].nodeValue
boat['beam'] = beam
fuel_list  = 
node.getElementsByTagName('FuelTankCapacityMeasure')
for f in fuel_list:
fuel_capacity = f.childNodes[0].nodeValue
boat['fuel_capacity'] = fuel_capacity
hold_list  = 
node.getElementsByTagName('HoldingTankCapacityMeasure')
for h in hold_list:
hold_capacity = f.childNodes[0].nodeValue
boat['hold_capacity'] = hold_capacity
water_list  = 
node.getElementsByTagName('WaterTankCapacityMeasure')
for w in water_list:
water_capacity = w.childNodes[0].nodeValue
boat['water_capacity'] = water_capacity
cat_code_list  = node.getElementsByTagName('BoatCategoryCode')
for c in cat_code_list:
category_code = c.childNodes[0].nodeValue
boat['category_code'] = category_code
boat_class_group = node.getElementsByTagName('BoatClassGroup')
for x in boat_class_group:
bcc1 = node.getElementsByTagName('BoatClassCode')[:1]
for b in bcc1:
boat_class_code = b.childNodes[0].nodeValue
boat['boat_class_code'] = boat_class_code
pbci = 
node.getElementsByTagName('PrimaryBoatClassIndicator')[:1]
for p in pbci:
primary_boat_class_indicator = p.childNodes[0].nodeValue
boat['primary_boat_class_indicator'] = 
primary_boat_class_indicator
bcc2 = node.getElementsByTagName('BoatClassCode')[:2]
for b in bcc2:
second_boat_class_code = b.childNodes[0].nodeValue
boat['second_boat_call_code'] = secon

django-ratings

2012-10-23 Thread rosy
Hi,

I have installed django-ratings application in my project. But i am not 
able to understand about its proper usage. I have searched on web to find 
any documentation about it but couldn't get anything. Can anyone help me ?

Regards,
Rosy

-- 
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.google.com/d/msg/django-users/-/HPfK556BSfgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Import csv file in admin

2012-10-23 Thread Meenakshi Ithape
On Wednesday, 3 November 2010 09:34:38 UTC+5:30, Jorge wrote:
>
> Jirka & Everybody 
>
> Back to basics is always a good advice. With your help and this guy: 
> http://www.beardygeek.com/2010/03/adding-views-to-the-django-admin/ 
> I can create a form to upload csv files and input their records into 
> the database. 
>
> Short history: 
>
> Forms.py: 
> class DataInput(forms.Form): 
> file = forms.FileField() 
> place = forms.ModelChoiceField(queryset=Place.objects.all()) 
>
> def save(self): 
> records = csv.reader(self.cleaned_data["file"]) 
> for line in records: 
> input_data = Data() 
> input_data.place = self.cleaned_data["place"] 
> input_data.time = datetime.strptime(line[1], "%m/%d/%y %H: 
> %M:%S") 
> input_data.data_1 = line[2] 
> input_data.data_2 = line[3] 
> input_data.data_3 = line[4] 
>
> This form was imported in a view: 
>
> @staff_member_required 
> def import(request): 
> if request.method == "POST": 
> form = DataInput(request.POST, request.FILES) 
> if form.is_valid(): 
> form.save() 
> success = True 
> context = {"form": form, "success": success} 
> return render_to_response("imported.html", context, 
> context_instance=RequestContext(request)) 
> else: 
> form = DataInput() 
> contexto = {"form": form} 
> return render_to_response("imported.html", context, 
> context_instance=RequestContext(request)) 
>
> And add  the url pattern & some little changes to the admin index 
> template, and everything works the way i want. 
>
> Thanks guys! 
>
 
Hi! 
I am using this code but gives errror as " 'DataInput' object has no 
attribute 'cleaned_data'
Can you please suggest me why this occurs? And the form.is_valid() is not 
working it always return false. 

-- 
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.google.com/d/msg/django-users/-/toQMoqwWeBQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: strange problem with dajaxice and javascript

2012-10-23 Thread Michael J Kaye
Hi,

On 23/10/12 01:24, cingusoft wrote:
> i have a javascript callback function that return a data json string
> from a dajaxice view
> 
> this is the callback function
> 
> function message_callback(data){
> alert(data.id);
> var id_book = data.id;
> var uploader = $('#uploader').pluploadQueue({
> url :
> '/admin/ecommerce/books/images/upload/'+id_book.toString()+'/'
> });
> ...
> 
> the aleet return the correct id number
> but the url is : /admin/ecommerce/books/images/upload/undefined
> 
> have someting wrong?

I think your issue is with the JavaScript, so you may get better answers
elsewhere.

I suggest you use FireBug to step through your callback and check the
type and value of the relevant variables at each step.

If that doesn't help, could you reply with some information about your
dajaxice view and what it returns?

Regards,
-- 
Michael J Kaye
www.software.coop …good thinking

--
I'm not a Microsoft customer so, although my software will
open Microsoft documents you send, I can't guarantee that the
formatting will be correct or all the content will be visible.

http://www.documentfreedom.org/testimonials.en.html

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Import data from csv file to database from django admin

2012-10-23 Thread Meenakshi Ithape
Hi!
I tried to import the data from csv file to database.
I refer below link
https://groups.google.com/forum/#!msg/django-users/usjC-X9-p5E/94bf4tw3Ni8J

I have create the models and view same like above link. 
I have create the "import" buttom on admin side by changing  
"app/change_list" html. On the "import" onclick method i call the my import 
view. But it gives me error as 
'DataInput' object has no attribute 'cleaned_data' And form.is_valid() 
always return false.

Thanks,
Meenakshi

-- 
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.google.com/d/msg/django-users/-/1xOECDxAZMUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



IntegrityError registration_registrationprofile when deleting user from admin

2012-10-23 Thread pietro conconi
Hi
i've included django-registration in my project's apps.
I've included in my project's settings
AUTH_PROFILE_MODULE = "people.Profile"

Trying to delete an User from admin interface,
I'm still getting this frustrating error message

*IntegrityError at /admin/auth/user/X/delete/*

*update or delete on table "auth_user" violates foreign key constraint 
"registration_registrationprofile_user_id_fkey" on table 
"registration_registrationprofile"*

*DETAIL:  Key (id)=(X) is still referenced from table 
"registration_registrationprofile".*

The url /admin/auth/user/X/delete/ 
 only shows

auth.User instance and profile.Profile instance to be deleted, 

but the instance of this table (registration_registrationprofile) is not 
included and processed.


Any ideas?

Thank's

Peter




-- 
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.google.com/d/msg/django-users/-/SdbX0J3O9NEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Gunicorn vs Chaussette vs Meinheld

2012-10-23 Thread Santiago Basulto
Wow, thank you very much Tarek for your explanation. I'm willing to
try Circus, seems pretty awesome indeed. There's just one thing 1 need
to ask. As a summary...

Are Chaussette and Meinheld WSGI servers just like Gunicorn, can those
be used with Nginx as a reverse proxy?

On Mon, Oct 22, 2012 at 8:28 AM, Tarek Ziadé  wrote:
> On Monday, October 22, 2012 1:09:56 PM UTC+2, Santiago Basulto wrote:
>>
>> Hello people. Reading about Circus[1] I ran into a couple of different
>> "WSGI servers" that I haven't heard before (Chaussette[2] and Meinheld[3]).
>> My question is if those are all similar to Gunicorn (and can be used instead
>> of the last) or are just complementary servers.
>>
>>
>> One thing that really confuses me is this:
>>
>> Meinheld claims that you can use it with Gunicorn.
>>
>> >gunicorn --workers=2 --worker-class="egg:meinheld#gunicorn_worker"
>> > gunicorn_test:app
>>
>> And Chaussette claims that you can use Meinheld as the backend.
>>
>> This is really confusing. What's the advantages of one over the other? I'm
>> using Gunicorn right now and works pretty well. Have you used any of the
>> others?
>>
>> [1]: http://circus.readthedocs.org/en/0.5.2.1/
>> [2]: http://chaussette.readthedocs.org/en/0.4/
>> [3]: http://meinheld.org/
>
>
>
> tl;dr: with Circus and Chaussette you get a nice process management tool
> where you can manage all your processes in a single place (web
> workers,celery, redis, rabbit, elastic search etc..)
>
> long story:  Circus is able to bind the sockets and share them with the
> processes it manages.  The advantage is that you remove one layer of process
> management
>
> In a classical stack, if you have Gunicorn running 5 workers, and let's say
> - one celeryd and one redis running, you end up with 2 layers of process
> managers: the one you use to manage gunicorn, redis and celeryd -- and
> gunicorn that manages its 5 workers.  You end up not being able to interact
> with your web workers the same way you'd do with your other processes in
> your stack.
>
> using Circus, you can have a single layer of processes management.  More
> explanations here:
> http://circus.readthedocs.org/en/0.5.2.1/sockets/#circus-stack-v-s-classical-stack
>
> As for Meinheld, it can act as a standalone wsgi web server, like uWsgi for
> instance - and Chaussette offers it as a backend. And it also happens to
> allow you to bind gunicorn - which in my opinion does not make much sense
> since it's already a wsgi server.
>
> Cheers
> Tarek
>
>
>
>
>
>
>
>
> --
> 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.google.com/d/msg/django-users/-/IYcPGsXy8WYJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



-- 
Santiago Basulto.-

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Gunicorn vs Chaussette vs Meinheld

2012-10-23 Thread Tarek Ziadé


On Tuesday, October 23, 2012 1:49:20 PM UTC+2, Santiago Basulto wrote:
>
> Wow, thank you very much Tarek for your explanation. I'm willing to 
> try Circus, seems pretty awesome indeed. 


You are welcome. If you need more help we're hanging in #mozilla-circus on 
Freenode
 

> There's just one thing 1 need 
> to ask. As a summary... 
>
> Are Chaussette and Meinheld WSGI servers just like Gunicorn, can those 
> be used with Nginx as a reverse proxy? 
>

Yeah they all do the same thing: serve HTTP requests on a given port (or 
unix socket file for some of them)

So you can reverse proxy them the same way in Nginx.

Cheers
Tarek

 

-- 
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.google.com/d/msg/django-users/-/aDEOSk-W8kEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Gunicorn vs Chaussette vs Meinheld

2012-10-23 Thread mmrs151
Hi Tarek, is it not same as Supervisor or upstart, as you are saying they 
all are process manager.

On Tuesday, 23 October 2012 12:56:26 UTC+1, Tarek Ziadé wrote:
>
>
>
> On Tuesday, October 23, 2012 1:49:20 PM UTC+2, Santiago Basulto wrote:
>>
>> Wow, thank you very much Tarek for your explanation. I'm willing to 
>> try Circus, seems pretty awesome indeed. 
>
>
> You are welcome. If you need more help we're hanging in #mozilla-circus on 
> Freenode
>  
>
>> There's just one thing 1 need 
>> to ask. As a summary... 
>>
>> Are Chaussette and Meinheld WSGI servers just like Gunicorn, can those 
>> be used with Nginx as a reverse proxy? 
>>
>
> Yeah they all do the same thing: serve HTTP requests on a given port (or 
> unix socket file for some of them)
>
> So you can reverse proxy them the same way in Nginx.
>
> Cheers
> Tarek
>
>  
>

-- 
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.google.com/d/msg/django-users/-/GBriedYGC3cJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



csrf protection question

2012-10-23 Thread Àlex Pérez
I have override the  CsrfViewMiddleware middleware by:

class CustomCsrfViewMiddleware(CsrfViewMiddleware):

def process_response(self, request, response):
if getattr(response, 'csrf_processing_done', False):
return response

# If CSRF_COOKIE is unset, then CsrfViewMiddleware.process_view was
# never called, probaby because a request middleware returned a
response
# (for example, contrib.auth redirecting to a login page).
if request.META.get("CSRF_COOKIE") is None:
return response

if not request.META.get("CSRF_COOKIE_USED", False):
return response

# Set the CSRF cookie even if it's already set, so we renew
# the expiry timer.
response.set_cookie(settings.CSRF_COOKIE_NAME,
request.META["CSRF_COOKIE"],
max_age=60 * 60 * 24 * 7 * 52,
domain=settings.CSRF_COOKIE_DOMAIN,
path=request.META["PATH_INFO"],
secure=settings.CSRF_COOKIE_SECURE
)
# Content varies with the CSRF cookie, so set the Vary header.
patch_vary_headers(response, ('Cookie',))
response.csrf_processing_done = True
return response


my change is: path=request.META["PATH_INFO"],

I don't know if could be any problem.

Thanks


-- 
Alex Perez
alex.pe...@bebabum.com

 *bebabum* be successful

c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum

This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law.

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario
indicado,
queda notificado que la utilización, divulgación y/o copia sin autorización
está prohibida en virtud de la legislación vigente.

Le informamos que los datos personales que facilite/ha facilitado pasarán a
formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
por finalidad gestionar las relaciones con usted.
Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la dirección
de e-mail l...@bebabum.com

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Gunicorn vs Chaussette vs Meinheld

2012-10-23 Thread Tarek Ziadé


On Tuesday, October 23, 2012 3:47:43 PM UTC+2, mmrs151 wrote:
>
> Hi Tarek, is it not same as Supervisor or upstart, as you are saying they 
> all are process manager.
>

 - Circus is a process manager like Supervisord or upstart
 - Circus also binds sockets, like Gunicorn or Apache or Nginx
 - Chaussette is a WSGI server with many backends. It can be used on 
sockets already bound by Circus 
 - Meinheld provides async features - it can be used as a Gunicorn worker 
*or* through its bundled wsgi web server.
 
Possible stacks:

Nginx => Gunicorn => Meinheld  and Supervisord 
  
  It is a very classical stack in the Py world and Supervisor manages 
Gunicorn which in turn manage meinheld workers.

Nginx => Circus => Chaussette+Meinheld

  It is quite similar to the orevious except that we have a single tool to 
manage all the processes of the stack (Circus)



Cheers
Tarek

-- 
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.google.com/d/msg/django-users/-/4m9vTy-ndIwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Stop executing template tag

2012-10-23 Thread Nikhil Verma
Thanks to all . But Tome and Russel answers were absolutely correct.Worked
like a charm.

{% templatetag openvariable %} hello {% templatetag closevariable




On Fri, Oct 19, 2012 at 4:16 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> On Fri, Oct 19, 2012 at 6:21 PM, Nikhil Verma 
> wrote:
> > Hello people
> >
> > I need some suggestion in a problem.
> >
> > How can i stop django template engine  not executing {{name}}. Meaning I
> do
> > not want that {{}}, the value should be printed it should somehow pass
> into
> > the browser as it is.
> > If i writing {{name}} it should print {{name}} in html file/browser
>
> You have two options:
>
> Option 1 - Use the {% templatetag %} templatetag:
>
> https://docs.djangoproject.com/en/dev/ref/templates/builtins/#templatetag
>
> {% templatetag openvariable %} hello {% templatetag closevariable
>
> will render as
>
> {{ hello }}
>
> Option 2 -- if you have a large block of text that you want to render,
> you can use the {% verbatim %} template tag
>
> {% verbatim %}
> This {{ content }} won't be processed.
> {% endverbatim %}
>
> Unfortunately, this option is only available in Django's trunk (so it
> will be part of Django 1.5). However, there are plenty of snippets of
> code you can use (including copying Django's own implementation) that
> you can use in your own project.
>
> Yours,
> Russ Magee %-)
>
> --
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Regards
Nikhil Verma
+91-958-273-3156

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



resolve() sample code in the Django docs

2012-10-23 Thread confused fellow
Hi 
With regard to the code example at the end of the resolve() 
documentation("test
 whether a view would raise a Http404 error before redirecting to 
it"), could anyone explain why 
the referer header is being used?
Thanks

-- 
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.google.com/d/msg/django-users/-/tI0gcsXE9LUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django Hello

2012-10-23 Thread Alex Clark

Hi:

Not sure if my planet feed request will get approved, but I just wrote 
my first Django post :-)



- http://blog.aclark.net/2012/10/23/django-hello/


Cheers


--
Alex Clark · https://www.gittip.com/aclark4life/


--
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Combinable generic CBVs

2012-10-23 Thread Kudlaty
Hi,

i just starting to use CBVs in django
and i try to implement something like that:

from django.views.generic import DetailView

from .models import Product, ProductOpinion
from .forms import OpinionForm


class OpinionListMixin(object):
queryset = ProductOpinion.objects.all().order_by('-date')

def get_context_data(self, **kwargs):
context = {
'opinion_list': self.queryset
}
context.update(kwargs)

return super(OpinionListMixin, self).get_context_data(**context)


class OpinionFormMixin(object):
form_class = OpinionForm

def get_context_data(self, **kwargs):
context = {
'form': self.form_class
}
context.update(kwargs)

return super(OpinionFormMixin, self).get_context_data(**context)

def form_valid(self, form):
return super(OpinionFormMixin, self).form_valid(form)


class ProductDetailsView(OpinionListMixin, OpinionFormMixin, DetailView):
queryset = Product.objects.filter(status=True)
template_name = "product.html"
context_object_name = "product"


but how to filter productopinions in OpinionListMixin by product_id
and how to set product_id in OpinionFormMixin
and do i need to set now success_url?


W dniu środa, 29 sierpnia 2012 23:24:55 UTC+2 użytkownik Melvyn Sopacua 
napisał:
>
> On 29-8-2012 18:46, Rainy wrote: 
> > On Aug 29, 3:10 am, Melvyn Sopacua  wrote: 
> >> On 29-8-2012 4:44, Rainy wrote: 
> >> 
> >>> When I use CBVs, I nearly always end up needing to mix different types 
> in 
> >>> the same view, e.g. detail view and list view, list view and modelform 
> >>> view, etc. I really like CBVs but I feel this is the one shortcoming 
> that I 
> >>> constantly run into that makes CBVs much less flexible and helpful 
> than 
> >>> they could be. 
> >> 
> >> What are your real world cases for this? If you combine several models 
> >> to make up a page, you should consider writing your own mixins that 
> >> inherit only from ContextMixin and implement get_context_data() to add 
> >> the extra information. 
>
>  
>
> > I will give some examples at the end of the message, but first I want 
> >  to expand a bit on this idea. 
> > 
> > Let's say you have a detail CBV, FooView(DetailView): model = Foo ; 
> >  and a list view, BarView(ListView): model = Bar . 
> > 
> > Now, combining different types of views is an extremely common case 
> > and you might say that the cases when you don't need to do that are 
> > usually so simple that existing GCBVs already handle them perfectly. 
>
> The list and detail view don't bite each other in many aspects. However, 
> as you will list in examples below, you usually don't have just one list 
> view per page. See below. 
>
> > I don't see any apparent reason why the two examples above can't 
> > be combined exactly in the same way you inherit each separate view: 
> > FooBarView(DetailView, ListView): detail_model=Foo; list_model=Bar. 
>
> Because how would you declare a second list model? And how would you 
> pick these up? Aside from making the routing through the model 
> difficult, this will also be a declaration nightmare. 
>
> > As a bonus, you don't have to decide which mixin to use and when 
> > overriding methods, you will know which instance variable and method 
> > handles detail and list objects. 
>
> Except when you need more than one list or detail or both. 
>
> > Here are a few examples where it would be useful, and I can find many 
> > more in my projects: 
> > 
> >   - blog post: 3 CBVs: post, list of comments, comment form 
> >  - search: FormView, ListView 
> >  - photo album: detail view for album, listview of images 
> > 
> > I know each of these cases can be handled with current GCBVs but 
> > with a lot more effort and in a more verbose and error-prone way 
> > than what I'm proposing. 
>
> I don't see that: 
> class BlogView(CommentListMixin, CommentFormMixin, DetailView) : 
> model = BlogPosts 
>
> versus: 
> class BlogView(DetailView, ListView, CreateView) : 
> detail_model = BlogPost 
> list_model = Comments 
> form_model = Comments 
>
> I find the second version harder to read, more verbose to type and when 
> you want to support multiple models you will have to support some sort 
> of sequence or mapping. Not to mention how you'd handle template-coder 
> friendly names through context_object_name and similar. 
>
> Yes, the first version requires more work to code the mixins, but I 
> don't find them harder to debug either. In fact, pretty much only one 
> point where things can go wrong: get_context_data(). 
>
> I can see your point and some of my issues with it may well be personal 
> preference, but I'm not sure if the Generic CBV's are a good base for 
> what you ask of them. I'm currently working on a RelatedModelMixin and 
> subsequently a FormsetMixin and I already feel like I'm coloring outside 
> the lines. 
> It's made me consider the fact that function based views are m

Re: xml dom (minidom) and python UPDATE

2012-10-23 Thread Bill Freeman
Have you tried simplified code on a simplified XML file, playing with
it in the shell to get a feel for what you can and can't do?  And
built up from there.

I'm sorry that I can't be more direct.  I always reach for lxml and
its elementTree emulation when I have XML to parse.

Bill

On Tue, Oct 23, 2012 at 6:18 AM, MikeKJ  wrote:
> Ok so I have realised that what I think I  need is a dict of dicts
> so far I have a dict, stuff which will be populated by boat and engine
> BUT it doesnt seem to work using
> for z in [boat, engine]:
> stuff.update(z)
> to populate stuff but still seem to be getting a single boat result and no
> engine dict data
>
> from xml.dom import minidom
> from xml.dom.minidom import parseString
> url =
> "https://services.boatwizard.com/bridge/events/ae0324ff-e1a5-4a77-9783-f41248bfa975/boats?status=on";
> dom = minidom.parse(urllib2.urlopen(url))
>
> stuff = {}
> for x in dom.getElementsByTagName('VehicleRemarketingBoatLineItem'):
> boat = {}
> for node in x.getElementsByTagName('VehicleRemarketingBoat'):
> name_list = node.getElementsByTagName('MakeString')
> for n in name_list:
> name = n.childNodes[0].nodeValue
> boat['name'] =  name
> year_list = node.getElementsByTagName('ModelYear')
> for y in year_list:
> year = y.childNodes[0].nodeValue
> boat['year'] = year
> model_list = node.getElementsByTagName('Model')
> for m in model_list:
> model = m.childNodes[0].nodeValue
> boat['model'] = model
> length_group = node.getElementsByTagName('BoatLengthGroup')
> for x in length_group:
> n_l = node.getElementsByTagName('BoatLengthCode')[:1]
> for l in n_l:
> length_code = l.childNodes[0].nodeValue
> boat['length_code'] = length_code
> nlm = node.getElementsByTagName('BoatLengthMeasure')[:1]
> for lm in nlm:
> nominal_length = lm.childNodes[0].nodeValue
> boat['nominal_length'] = nominal_length
> loa_list = node.getElementsByTagName('BoatLengthCode')[:2]
> for loa in loa_list:
> loa_code = loa.childNodes[0].nodeValue
> boat['loa_code'] = loa_code
> loa_measure_list =
> node.getElementsByTagName('BoatLengthMeasure')[:2]
> for lm in loa_measure_list:
> loa_measure = lm.childNodes[0].nodeValue
> boat['loa_measure'] = loa_measure
> l_o_list = node.getElementsByTagName('BoatLengthCode')[:3]
> for loo in l_o_list:
> length_overall_code = loo.childNodes[0].nodeValue
> boat['length_overall_code'] = length_overall_code
> l_o_measure_list =
> node.getElementsByTagName('BoatLengthMeasure')[:3]
> for lo in l_o_measure_list:
> length_overall_measure = lo.childNodes[0].nodeValue
> boat['length_overall_measure'] = length_overall_measure
> bridge_list =
> node.getElementsByTagName('BridgeClearanceMeasure')
> for bl in bridge_list:
> bridge_clearance = bl.childNodes[0].nodeValue
> boat['bridge_clearance'] = bridge_clearance
> beam_list  = node.getElementsByTagName('BeamMeasure')
> for bm in beam_list:
> beam = bm.childNodes[0].nodeValue
> boat['beam'] = beam
> fuel_list  =
> node.getElementsByTagName('FuelTankCapacityMeasure')
> for f in fuel_list:
> fuel_capacity = f.childNodes[0].nodeValue
> boat['fuel_capacity'] = fuel_capacity
> hold_list  =
> node.getElementsByTagName('HoldingTankCapacityMeasure')
> for h in hold_list:
> hold_capacity = f.childNodes[0].nodeValue
> boat['hold_capacity'] = hold_capacity
> water_list  =
> node.getElementsByTagName('WaterTankCapacityMeasure')
> for w in water_list:
> water_capacity = w.childNodes[0].nodeValue
> boat['water_capacity'] = water_capacity
> cat_code_list  = node.getElementsByTagName('BoatCategoryCode')
> for c in cat_code_list:
> category_code = c.childNodes[0].nodeValue
> boat['category_code'] = category_code
> boat_class_group = node.getElementsByTagName('BoatClassGroup')
> for x in boat_class_group:
> bcc1 = node.getElementsByTagName('BoatClassCode')[:1]
> for b in bcc1:
> boat_class_code = b.childNodes[0].nodeValue
> boat['boat_class_code'] = boat_class_code
>  

Re: Django setup with elsatic beanstalk

2012-10-23 Thread Andrzej Winnicki
Try with python.config instead of simple .config file (this is just an file 
extension, not file name). Requirements.txt should be at 'top-level 
directory of your source bundle'. More info here:

http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_custom_container.html

On Friday, 12 October 2012 11:54:37 UTC+2, Stefano Tranquillini wrote:
>
> Mmm. seems that i missing something.
>
> this is the log
>
> 2012-10-12 09:36:51,352 [INFO] (24716 MainThread) 
> [directoryHooksExecutor.py-28] [root directoryHooksExecutor info] Output 
> from script: 2012-10-12 09:36:51,331* ERRORThe specified WSGIPath of 
> "application.py" was not found in the source bundle*
>
> 2012-10-12 09:36:51,353 [INFO] (24716 MainThread) 
> [directoryHooksExecutor.py-28] [root directoryHooksExecutor info] Script 
> succeeded.
> 2012-10-12 09:36:51,443 [INFO] (24641 MainThread) [command.py-126] [root 
> command execute] Command returned: (code: 0, stdout: , stderr: None)
> 2012-10-12 09:36:51,449 [INFO] (24641 MainThread) [command.py-118] [root 
> command execute] Executing command: Infra-EmbeddedPostBuild - 
> AWSEBAutoScalingGroup
> 2012-10-12 09:36:52,621 [INFO] (24641 MainThread) [command.py-126] [root 
> command execute] Command returned: (code: 1, stdout: Error occurred during 
> build: Command 01_syncdb failed
> , stderr: None)
> 2012-10-12 09:36:52,623 [DEBUG] (24641 MainThread) [commandWrapper.py-60] 
> [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': 
> [{'status': 'SUCCESS', 'config_set': u'Hook-PreAppDeploy', 'events': 
> [*{'msg': 
> 'Your WSGIPath refers to a file that does not exist.', 'timestamp': 
> 1350034611, 'severity': 'ERROR'}]*}, {'status': 'FAILURE', 'config_set': 
> u'Infra-EmbeddedPostBuild', 'returncode': 1, 'events': [], 'msg': 'Error 
> occurred during build: Command 01_syncdb failed\n'}], 'api_version': '1.0'}
>
> what's is this application.py (it's not mentioned in the tutorial) ? idea 
> about the WSGIPath?
>
> this is the directory tree:
>
> .
> |.ebextensions
> | |config
> |.elasticbeanstalk
> | |config
> | |optionsettings
>  |manage.py
> |mysites
> | |.DS_Store
> | |__init__.py
> | |__init__.pyc
> | |settings.py
> | |settings.pyc
> | |urls.py
> | |urls.pyc
> | |wsgi.py
> | |wsgi.pyc
> |requirements.txt
>
>
>
> two things. tutorial says that config file should be .config . it sounds 
> strange. 
> is it correct?
> where the requirements.txt should be located?
>
>
>
> On Thu, Oct 11, 2012 at 6:47 PM, Stefano Tranquillini <
> stefano.tr...@gmail.com > wrote:
>
>> same problem, did you solve it?
>>
>>
>> On Monday, October 8, 2012 7:22:51 PM UTC+2, shlomi oberman wrote:
>>>
>>> I'm trying without succes to setup a simple application using django 
>>> with elastic beanstalk from my windows machine.
>>> Does anyone have any expreience with this? I am currently getting the 
>>> following error from the EB console: 
>>> "Your WSGIPath refers to a file that does not exist."
>>>
>>>  -- 
>> 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.google.com/d/msg/django-users/-/WiWZ2EApeWUJ.
>>
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> Stefano
>  

-- 
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.google.com/d/msg/django-users/-/Qmf9OrOrtxsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Displaying a custom field (PickledObjectField) in the admin

2012-10-23 Thread Alphydan
I have the same problem (on ubuntu, python 2.7, django 1.4, 
django-picklefield 0.2.1) ... does anybody have any insight?
John, did you find a solution?

Thank you. 

On Thursday, 8 April 2010 19:30:20 UTC+1, John DeRosa wrote:
>
> Hello Djangonauts,
>
> I'm doing something wrong, but I just can't see it!
>
> My problem is that a custom model field isn't being displayed in the Admin 
> interface.
>
> I'm running OS X 10.6.3, Python 2.6, and Django 1.1.1. I installed 
> django-picklefield 0.1.5 from PyPi, and I'm trying to use it in a database 
> model. I defined a couple of custom PickledObjectField fields. They show up 
> in the Admin model docs as being of type "Text", but they *don't* show up 
> in the Admin when I add or change a row.
>
> Here's what I'm doing. What am I doing wrong?
>
> John
>
> --
>
> In models.py:
>
> from picklefield.fields import PickledObjectField
>
> class LayoutTemplate(models.Model):
> [snip]
> attachment_points = PickledObjectField(help_text="A list of 
> TemplateAttachmentPoints")
> placed_objects = PickledObjectField(blank=True,
> help_text="A list of objects 
> placed on this template")
> # These LayoutObjects are allowed on this template.
> allowed_objects = PickledObjectField(help_text="A list of allowed 
> objects.")
>
> def __unicode__(self):
> return u"%s" % self.name
>
>
> In admin.py:
>
> from hosted.models import LayoutTemplate
> from django.contrib import admin
> admin.site.register(LayoutTemplate)
>
>
>
>

-- 
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.google.com/d/msg/django-users/-/QHA-yQ1spEIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django setup with elsatic beanstalk

2012-10-23 Thread Andrzej Winnicki


Try also to change settings in .elasticbeanstalk/optionsettings. 


[aws:elasticbeanstalk:application:environment]
DJANGO_SETTINGS_MODULE = 
PARAM1 = 
PARAM2 = 
PARAM4 = 
PARAM3 = 
PARAM5 = 

[aws:elasticbeanstalk:container:python]
WSGIPath = application.py
NumProcesses = 1
StaticFiles = /static=
NumThreads = 15

[aws:elasticbeanstalk:container:python:staticfiles]
/static = 


Then type eb update and trick should work.


On Friday, 12 October 2012 11:54:37 UTC+2, Stefano Tranquillini wrote:
>
> Mmm. seems that i missing something.
>
> this is the log
>
> 2012-10-12 09:36:51,352 [INFO] (24716 MainThread) 
> [directoryHooksExecutor.py-28] [root directoryHooksExecutor info] Output 
> from script: 2012-10-12 09:36:51,331* ERRORThe specified WSGIPath of 
> "application.py" was not found in the source bundle*
>
> 2012-10-12 09:36:51,353 [INFO] (24716 MainThread) 
> [directoryHooksExecutor.py-28] [root directoryHooksExecutor info] Script 
> succeeded.
> 2012-10-12 09:36:51,443 [INFO] (24641 MainThread) [command.py-126] [root 
> command execute] Command returned: (code: 0, stdout: , stderr: None)
> 2012-10-12 09:36:51,449 [INFO] (24641 MainThread) [command.py-118] [root 
> command execute] Executing command: Infra-EmbeddedPostBuild - 
> AWSEBAutoScalingGroup
> 2012-10-12 09:36:52,621 [INFO] (24641 MainThread) [command.py-126] [root 
> command execute] Command returned: (code: 1, stdout: Error occurred during 
> build: Command 01_syncdb failed
> , stderr: None)
> 2012-10-12 09:36:52,623 [DEBUG] (24641 MainThread) [commandWrapper.py-60] 
> [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': 
> [{'status': 'SUCCESS', 'config_set': u'Hook-PreAppDeploy', 'events': 
> [*{'msg': 
> 'Your WSGIPath refers to a file that does not exist.', 'timestamp': 
> 1350034611, 'severity': 'ERROR'}]*}, {'status': 'FAILURE', 'config_set': 
> u'Infra-EmbeddedPostBuild', 'returncode': 1, 'events': [], 'msg': 'Error 
> occurred during build: Command 01_syncdb failed\n'}], 'api_version': '1.0'}
>
> what's is this application.py (it's not mentioned in the tutorial) ? idea 
> about the WSGIPath?
>
> this is the directory tree:
>
> .
> |.ebextensions
> | |config
> |.elasticbeanstalk
> | |config
> | |optionsettings
>  |manage.py
> |mysites
> | |.DS_Store
> | |__init__.py
> | |__init__.pyc
> | |settings.py
> | |settings.pyc
> | |urls.py
> | |urls.pyc
> | |wsgi.py
> | |wsgi.pyc
> |requirements.txt
>
>
>
> two things. tutorial says that config file should be .config . it sounds 
> strange. 
> is it correct?
> where the requirements.txt should be located?
>
>
>
> On Thu, Oct 11, 2012 at 6:47 PM, Stefano Tranquillini <
> stefano.tr...@gmail.com > wrote:
>
>> same problem, did you solve it?
>>
>>
>> On Monday, October 8, 2012 7:22:51 PM UTC+2, shlomi oberman wrote:
>>>
>>> I'm trying without succes to setup a simple application using django 
>>> with elastic beanstalk from my windows machine.
>>> Does anyone have any expreience with this? I am currently getting the 
>>> following error from the EB console: 
>>> "Your WSGIPath refers to a file that does not exist."
>>>
>>>  -- 
>> 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.google.com/d/msg/django-users/-/WiWZ2EApeWUJ.
>>
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> Stefano
>  

-- 
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.google.com/d/msg/django-users/-/pucwiubVwFEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django formwizard NoFileStorageConfigured

2012-10-23 Thread Kenneth Love
I've just been hit by this too, exactly the same set up and problem. I'd 
love a fix/solution.

On Sunday, March 11, 2012 5:27:33 AM UTC-7, danoro wrote:
>
> [ACTION] 
>
> Subclass NamedUrlSessionWizardView and instantiate it with a set of 
> forms one of them containing a FileField 
>
> class CommonWizardView(NamedUrlSessionWizardView): 
> pass 
>
> class FamilyWizardView(CommonWizardView): 
> pass 
>
> [RESULT] 
>
> File "/accounts/urls.py", line 66, in  
>
> family_wizard = FamilyWizardView.as_view(named_family_forms, 
> url_name='family_step', done_step_name='family_wizard') 
>
> File "python2.7/site-packages/django_formwizard-1.0-py2.7.egg/ 
> formwizard/views.py", line 109, in as_view 
>
> initkwargs = cls.get_initkwargs(*args, **kwargs) 
>
> File "python2.7/site-packages/django_formwizard-1.0-py2.7.egg/ 
> formwizard/views.py", line 583, in get_initkwargs 
>
> initkwargs = super(NamedUrlWizardView, cls).get_initkwargs(*args, 
> **kwargs) 
>
> File "python2.7/site-packages/django_formwizard-1.0-py2.7.egg/ 
> formwizard/views.py", line 166, in get_initkwargs 
>
> raise NoFileStorageConfigured 
>
>
> TemplateSyntaxError: Caught NoFileStorageConfigured while rendering 
>
> [CAUSE] 
>
> class WizardView(TemplateView): 
> @classmethod 
> def get_initkwargs(cls, form_list, initial_dict=None, 
> instance_dict=None, condition_dict=None, *args, **kwargs): 
> """ 
> Creates a dict with all needed parameters for the form wizard 
> instances. 
> """ 
>  
> # check if any form contains a FileField, if yes, we need 
> a 
> # file_storage added to the wizardview (by subclassing). 
> for field in form.base_fields.itervalues(): 
> if (isinstance(field, forms.FileField) and 
> not hasattr(cls, 'file_storage')): 
> raise NoFileStorageConfigured 
>
> [RESOLUTION] 
>
> subclassing is not enough.  I inherited from both 
> NamedUrlSessionWizardView and FileSystemStorage, as shown below, but I 
> keep getting this error. 
>
> class FamilyWizardView(CommonWizardView, FileSystemStorage): 
> pass 
>
> I noticed an instance variable in formwizard called storage_name but 
> it is used for child clasess Session and Cookie WizardViews. Si it's 
> no relevant 
>
> please, could you shed some light  ?

-- 
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.google.com/d/msg/django-users/-/9-yHc9eJn4wJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: csrf protection question

2012-10-23 Thread Russell Keith-Magee
Hi Àlex

Django-developers is a mailing list for discussing the development of
Django itself. If you have a general usage question, please direct it to
django-users.

Alternatively, if this was intended as a suggestion for something we should
do to Django's CSRF middleware -- you'll need to explain why you think the
change is necessary. We've got plenty of examples of sites in the wild
using the CSRF middleware as it is currently implemented; if you think a
change is needed, you'll need to describe the exact circumstances that have
led to you requesting this change.

Yours,
Russ %-)

On Tue, Oct 23, 2012 at 9:59 PM, Àlex Pérez  wrote:

>
> I have override the  CsrfViewMiddleware middleware by:
>
> class CustomCsrfViewMiddleware(CsrfViewMiddleware):
>
> def process_response(self, request, response):
> if getattr(response, 'csrf_processing_done', False):
> return response
>
> # If CSRF_COOKIE is unset, then CsrfViewMiddleware.process_view was
> # never called, probaby because a request middleware returned a
> response
> # (for example, contrib.auth redirecting to a login page).
> if request.META.get("CSRF_COOKIE") is None:
> return response
>
> if not request.META.get("CSRF_COOKIE_USED", False):
> return response
>
> # Set the CSRF cookie even if it's already set, so we renew
> # the expiry timer.
> response.set_cookie(settings.CSRF_COOKIE_NAME,
> request.META["CSRF_COOKIE"],
> max_age=60 * 60 * 24 * 7 * 52,
> domain=settings.CSRF_COOKIE_DOMAIN,
> path=request.META["PATH_INFO"],
> secure=settings.CSRF_COOKIE_SECURE
> )
> # Content varies with the CSRF cookie, so set the Vary header.
> patch_vary_headers(response, ('Cookie',))
> response.csrf_processing_done = True
> return response
>
>
> my change is: path=request.META["PATH_INFO"],
>
> I don't know if could be any problem.
>
> Thanks
>
>
> --
> Alex Perez
> alex.pe...@bebabum.com
>
>  *bebabum* be successful
>
> c/ Còrsega 301-303, Àtic 2
> 08008 Barcelona
> http://www.bebabum.com
> http://www.facebook.com/bebabum
> http://twitter.com/bebabum
>
> This message is intended exclusively for its addressee and may contain
> information that is confidential and protected by professional privilege.
> If you are not the intended recipient you are hereby notified that any
> dissemination, copy or disclosure of this communication is strictly
> prohibited by law.
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si no es vd. el destinatario
> indicado,
> queda notificado que la utilización, divulgación y/o copia sin
> autorización
> está prohibida en virtud de la legislación vigente.
>
> Le informamos que los datos personales que facilite/ha facilitado pasarán a
> formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
> por finalidad gestionar las relaciones con usted.
> Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
> oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la
> dirección de e-mail l...@bebabum.com
>
> --
> 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-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: csrf protection question

2012-10-23 Thread Russell Keith-Magee
… and, I've just noticed that you cross posted this to django-users *and*
django-developers, which is also a no-no. Please choose the single
appropriate mailing list and post your message once. In this case it sounds
like django-users was the right place.

Yours,
Russ Magee %-)

On Wed, Oct 24, 2012 at 8:16 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> Hi Àlex
>
> Django-developers is a mailing list for discussing the development of
> Django itself. If you have a general usage question, please direct it to
> django-users.
>
> Alternatively, if this was intended as a suggestion for something we
> should do to Django's CSRF middleware -- you'll need to explain why you
> think the change is necessary. We've got plenty of examples of sites in the
> wild using the CSRF middleware as it is currently implemented; if you think
> a change is needed, you'll need to describe the exact circumstances that
> have led to you requesting this change.
>
> Yours,
> Russ %-)
>
> On Tue, Oct 23, 2012 at 9:59 PM, Àlex Pérez wrote:
>
>>
>> I have override the  CsrfViewMiddleware middleware by:
>>
>> class CustomCsrfViewMiddleware(CsrfViewMiddleware):
>>
>> def process_response(self, request, response):
>> if getattr(response, 'csrf_processing_done', False):
>> return response
>>
>> # If CSRF_COOKIE is unset, then CsrfViewMiddleware.process_view
>> was
>> # never called, probaby because a request middleware returned a
>> response
>> # (for example, contrib.auth redirecting to a login page).
>> if request.META.get("CSRF_COOKIE") is None:
>> return response
>>
>> if not request.META.get("CSRF_COOKIE_USED", False):
>> return response
>>
>> # Set the CSRF cookie even if it's already set, so we renew
>> # the expiry timer.
>> response.set_cookie(settings.CSRF_COOKIE_NAME,
>> request.META["CSRF_COOKIE"],
>> max_age=60 * 60 * 24 * 7 * 52,
>> domain=settings.CSRF_COOKIE_DOMAIN,
>> path=request.META["PATH_INFO"],
>> secure=settings.CSRF_COOKIE_SECURE
>> )
>> # Content varies with the CSRF cookie, so set the Vary header.
>> patch_vary_headers(response, ('Cookie',))
>> response.csrf_processing_done = True
>> return response
>>
>>
>> my change is: path=request.META["PATH_INFO"],
>>
>> I don't know if could be any problem.
>>
>> Thanks
>>
>>
>> --
>> Alex Perez
>> alex.pe...@bebabum.com
>>
>>  *bebabum* be successful
>>
>> c/ Còrsega 301-303, Àtic 2
>> 08008 Barcelona
>> http://www.bebabum.com
>> http://www.facebook.com/bebabum
>> http://twitter.com/bebabum
>>
>> This message is intended exclusively for its addressee and may contain
>> information that is confidential and protected by professional privilege.
>> If you are not the intended recipient you are hereby notified that any
>> dissemination, copy or disclosure of this communication is strictly
>> prohibited by law.
>>
>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>> información privilegiada o confidencial. Si no es vd. el destinatario
>> indicado,
>> queda notificado que la utilización, divulgación y/o copia sin
>> autorización
>> está prohibida en virtud de la legislación vigente.
>>
>> Le informamos que los datos personales que facilite/ha facilitado pasarán
>> a
>> formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
>> por finalidad gestionar las relaciones con usted.
>> Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
>> oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la
>> dirección de e-mail l...@bebabum.com
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django formwizard NoFileStorageConfigured

2012-10-23 Thread Russell Keith-Magee
Have either of you done a search of Trac to see if this issue has been
reported previously? If there isn't, could you please open a ticket so that
the problem isn't forgotten.

Yours,
Russ Magee %-)

On Wed, Oct 24, 2012 at 6:47 AM, Kenneth Love  wrote:

> I've just been hit by this too, exactly the same set up and problem. I'd
> love a fix/solution.
>
>
> On Sunday, March 11, 2012 5:27:33 AM UTC-7, danoro wrote:
>>
>> [ACTION]
>>
>> Subclass NamedUrlSessionWizardView and instantiate it with a set of
>> forms one of them containing a FileField
>>
>> class CommonWizardView(**NamedUrlSessionWizardView):
>> pass
>>
>> class FamilyWizardView(**CommonWizardView):
>> pass
>>
>> [RESULT]
>>
>> File "/accounts/urls.py", line 66, in 
>>
>> family_wizard = FamilyWizardView.as_view(**named_family_forms,
>> url_name='family_step', done_step_name='family_wizard'**)
>>
>> File "python2.7/site-packages/**django_formwizard-1.0-py2.7.**egg/
>> formwizard/views.py", line 109, in as_view
>>
>> initkwargs = cls.get_initkwargs(*args, **kwargs)
>>
>> File "python2.7/site-packages/**django_formwizard-1.0-py2.7.**egg/
>> formwizard/views.py", line 583, in get_initkwargs
>>
>> initkwargs = super(NamedUrlWizardView, cls).get_initkwargs(*args,
>> **kwargs)
>>
>> File "python2.7/site-packages/**django_formwizard-1.0-py2.7.**egg/
>> formwizard/views.py", line 166, in get_initkwargs
>>
>> raise NoFileStorageConfigured
>>
>>
>> TemplateSyntaxError: Caught NoFileStorageConfigured while rendering
>>
>> [CAUSE]
>>
>> class WizardView(TemplateView):
>> @classmethod
>> def get_initkwargs(cls, form_list, initial_dict=None,
>> instance_dict=None, condition_dict=None, *args, **kwargs):
>> """
>> Creates a dict with all needed parameters for the form wizard
>> instances.
>> """
>> 
>> # check if any form contains a FileField, if yes, we need
>> a
>> # file_storage added to the wizardview (by subclassing).
>> for field in form.base_fields.itervalues():
>> if (isinstance(field, forms.FileField) and
>> not hasattr(cls, 'file_storage')):
>> raise NoFileStorageConfigured
>>
>> [RESOLUTION]
>>
>> subclassing is not enough.  I inherited from both
>> NamedUrlSessionWizardView and FileSystemStorage, as shown below, but I
>> keep getting this error.
>>
>> class FamilyWizardView(**CommonWizardView, FileSystemStorage):
>> pass
>>
>> I noticed an instance variable in formwizard called storage_name but
>> it is used for child clasess Session and Cookie WizardViews. Si it's
>> no relevant
>>
>> please, could you shed some light  ?
>
>  --
> 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.google.com/d/msg/django-users/-/9-yHc9eJn4wJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Billing and invoicing app?

2012-10-23 Thread Jesramz
Quick question, is there a good billing and invoicing app, that anyone can 
point me to?

Thanks all!

-- 
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.google.com/d/msg/django-users/-/cg8sQsl98K0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Billing and invoicing app?

2012-10-23 Thread Mike Dewhirst

On 24/10/2012 1:08pm, Jesramz wrote:

Quick question, is there a good billing and invoicing app, that anyone
can point me to?


http://www.djangopackages.com/



Thanks all!

--
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.google.com/d/msg/django-users/-/cg8sQsl98K0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


--
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Billing and invoicing app?

2012-10-23 Thread Jesse Ramirez
Thanks Mike!

I tried djangopackages and didn't find anything.  I was wondering if anyone
had a package that they found useful that might be of some help in this
area.

On Tue, Oct 23, 2012 at 9:18 PM, Mike Dewhirst wrote:

> On 24/10/2012 1:08pm, Jesramz wrote:
>
>> Quick question, is there a good billing and invoicing app, that anyone
>> can point me to?
>>
>
> http://www.djangopackages.com/
>
>
>
>> Thanks all!
>>
>> --
>> 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.google.com/d/**msg/django-users/-/**cg8sQsl98K0J
>> .
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscribe@**googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/**group/django-users?hl=en
>> .
>>
>
> --
> 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-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Billing and invoicing app?

2012-10-23 Thread Mac
I'm not sure if there's anything that is django-specific. There are a lot 
of payment processing apps out there, including stripe . 
I hear they provide a very good api libraries (including python), which 
would allow your to hook it up with Django. I don't know if this is what 
you are looking for, but I hope this helps.

Mac

On Tuesday, October 23, 2012 7:27:20 PM UTC-7, Jesramz wrote:
>
> Thanks Mike!
>
> I tried djangopackages and didn't find anything.  I was wondering if 
> anyone had a package that they found useful that might be of some help in 
> this area.
>
> On Tue, Oct 23, 2012 at 9:18 PM, Mike Dewhirst 
> 
> > wrote:
>
>> On 24/10/2012 1:08pm, Jesramz wrote:
>>
>>> Quick question, is there a good billing and invoicing app, that anyone
>>> can point me to?
>>>
>>
>> http://www.djangopackages.com/
>>
>>
>>  
>>> Thanks all!
>>>
>>> --
>>> 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.google.com/d/**msg/django-users/-/**cg8sQsl98K0J
>>> .
>>> To post to this group, send email to django...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> django-users...@**googlegroups.com .
>>> For more options, visit this group at
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to django-users...@**
>> googlegroups.com .
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en
>> .
>>
>>
>

-- 
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.google.com/d/msg/django-users/-/l-YTjHAwOUAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



[ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2012-10-23 Thread Surya Mukherjee
Django's standard User class isn't sufficient for my needs so I am making 
my own User class. As per the User Authentication doc page, I am 
subclassing AbstractUser (not AbstractBaseUser) to add some new stuff.


from django.contrib.auth.models import AbstractUser

class MyUser(AbstractUser):
test = 'Hello world'


Pretty simple so far. In settings.py:

# Specifies SDBUser as the custom User class for Django to use
AUTH_USER_MODEL = 'app.MyUser'


But when i try to syncdb, everything breaks:

[root@Surya project]# manage syncdb
CommandError: One or more models did not validate:
app.userprofile: 'user' defines a relation with the model 'auth.User', 
which has been swapped out. Update the relation to point at 
settings.AUTH_USER_MODEL.
auth.user: Model has been swapped out for 'app.SDBUser' which has not been 
installed or is abstract.
django_openid_auth.useropenid: 'user' defines a relation with the model 
'auth.User', which has been swapped out. Update the relation to point at 
settings.AUTH_USER_MODEL.

django_openid_auth is a third party OpenID library, but the first two are 
pure Django and they're still breaking. Wat do?

-- 
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.google.com/d/msg/django-users/-/fLbSAxq1RysJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2012-10-23 Thread Russell Keith-Magee
On Wed, Oct 24, 2012 at 12:02 PM, Surya Mukherjee wrote:

> Django's standard User class isn't sufficient for my needs so I am making
> my own User class. As per the User Authentication doc page, I am
> subclassing AbstractUser (not AbstractBaseUser) to add some new stuff.
>
> 
> from django.contrib.auth.models import AbstractUser
>
> class MyUser(AbstractUser):
> test = 'Hello world'
>

>
> Pretty simple so far. In settings.py:
> 
> # Specifies SDBUser as the custom User class for Django to use
> AUTH_USER_MODEL = 'app.MyUser'
> 
>
> But when i try to syncdb, everything breaks:
>
> [root@Surya project]# manage syncdb
> CommandError: One or more models did not validate:
>
app.userprofile: 'user' defines a relation with the model 'auth.User',
> which has been swapped out. Update the relation to point at
> settings.AUTH_USER_MODEL.
>
auth.user: Model has been swapped out for 'app.SDBUser' which has not been
> installed or is abstract.
> django_openid_auth.useropenid: 'user' defines a relation with the model
> 'auth.User', which has been swapped out. Update the relation to point at
> settings.AUTH_USER_MODEL.
>

These error messages are telling you the exact problem. The first and third
errors indicate that you have two models causing problems -- a UserProfile
in an app called "app", and an UserOpenID model in "django_openid_auth".
These models both contain a ForeignKey to User, defined as:

   user = models.ForeignKey(User)

This needs to be updated to point at

   user = models.ForeignKey(settings.AUTH_USER_MODEL)

As the error message says -- you need to update the relation to point at
settings.AUTH_USER_MODEL.

The second error ("Model has been swapped out…") is a side effect of the
fact that you're directly referencing the User model. Once you change the
ForieignKey references, this third error will go away.


> django_openid_auth is a third party OpenID library, but the first two are
> pure Django and they're still breaking. Wat do?
>

We've done everything we can to ensure a smooth transition to the new User
model, but it can't be completely transparent. App writers will need to
update their apps to be 1.5 compatible. Essentially, a Django 1.4 app won't
be 100% compatible with Django 1.5 if it contains a hard-coded foreign key
reference to User.

This is discussed both in the release notes [1], and in the documentation
of the swappable User feature [2].

[1]
https://docs.djangoproject.com/en/dev/releases/1.5/#configurable-user-model
[2] https://docs.djangoproject.com/en/dev/topics/auth/#auth-custom-user

Yours,
Russ Magee %-)

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Billing and invoicing app?

2012-10-23 Thread Ali Nikneshan
Check this one,
http://eldarion.com/blog/2012/10/23/easily-add-stripe-payments-your-django-site/
Just published :)
Ali

On Wednesday, October 24, 2012 6:56:42 AM UTC+3:30, Mac wrote:
>
> I'm not sure if there's anything that is django-specific. There are a lot 
> of payment processing apps out there, including stripe . 
> I hear they provide a very good api libraries (including python), which 
> would allow your to hook it up with Django. I don't know if this is what 
> you are looking for, but I hope this helps.
>
> Mac
>
> On Tuesday, October 23, 2012 7:27:20 PM UTC-7, Jesramz wrote:
>>
>> Thanks Mike!
>>
>> I tried djangopackages and didn't find anything.  I was wondering if 
>> anyone had a package that they found useful that might be of some help in 
>> this area.
>>
>> On Tue, Oct 23, 2012 at 9:18 PM, Mike Dewhirst wrote:
>>
>>> On 24/10/2012 1:08pm, Jesramz wrote:
>>>
 Quick question, is there a good billing and invoicing app, that anyone
 can point me to?

>>>
>>> http://www.djangopackages.com/
>>>
>>>
>>>  
 Thanks all!

 --
 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.google.com/d/**msg/django-users/-/**cg8sQsl98K0J
 .
 To post to this group, send email to django...@googlegroups.com.
 To unsubscribe from this group, send email to
 django-users...@**googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/**group/django-users?hl=en
 .

>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To post to this group, send email to django...@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users...@**
>>> googlegroups.com.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>>
>>

-- 
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.google.com/d/msg/django-users/-/ti_GioD9r7gJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Send data back to a table from template or send back to a view

2012-10-23 Thread Coulson Thabo Kgathi
Please help i have send a dictionary to a template now i want to send the 
processed data back to the database how do i do that in template language 
or javascript

-- 
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.google.com/d/msg/django-users/-/aSAzhnVceMQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Billing and invoicing app?

2012-10-23 Thread Jesse Ramirez
Thanks! I really appreciate the help guys!

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.