Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-26 Thread Benjamin Welton
Very true, oracle is quite difficult to get working (properly at least) 
in general on windows. Much less what amounts to a beta version of 
windows. I haven't heard back from the original poster on this, like i 
said im very curious to see if he was able to get everything working 
correctly. Everything should work for him since there doesnt seem to be 
any major kernel changes in windows 8 (unless he's using the Protogon 
file system, then all bets are off).


Ben

On 9/26/2011 4:23 PM, Andre Terra wrote:
It's just that if I were trying to get django working on windows 8, I 
wouldn't start with an Oracle setup.



Cheers,
AT

On Mon, Sep 26, 2011 at 6:14 PM, Benjamin Welton 
<benjamin.r.wel...@wmich.edu <mailto:benjamin.r.wel...@wmich.edu>> wrote:



Windows 8?


Its possible he's using it on Windows 8 since the developer
preview is available. If he actually is id be curious to know if
everything works ok on windows 8 with python/django.

Ben


On 09/26/2011 04:10 PM, Andre Terra wrote:

Windows 8?

On Sat, Sep 24, 2011 at 5:27 AM, Benjamin Welton
<benjamin.r.wel...@wmich.edu
<mailto:benjamin.r.wel...@wmich.edu>> wrote:

Hey Alec,

django.core.exceptions.ImproperlyConfigured: Error loading
cx_Oracle module: DLL load failed: %1 is not a valid Win32
application.

Do you have the visual c redistributable installed for 64bit
and the Python for windows extensions for 64bit installed?

Ben


On 9/24/2011 3:17 AM, Alec Taylor wrote:

Good afternoon,

Unfortunately DJango doesn't work with Oracle 11g Express on Windows 8 
x64.

DJango error:http://pastebin.com/8tAzsjYh  (summary: "No module named
cx_Oracle")

pip install cx_Oracle output:http://pastebin.com/6Y61PqSM

easy_install cx_Oracle output:http://pastebin.com/rCsY63RS

Summary: "Unable to find vcvarsall.bat"

When I try tried the x64 installer from
http://cx-oracle.sourceforge.net/  (using Python 2.7 x64), I got the
following manage.py syncdb error:http://pastebin.com/syqxF4m6

How can I make DJango work with my Oracle 11g Express database?

Thanks for all suggestions,

Alec Taylor



-- 
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
<mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@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 <mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
<mailto: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
<mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@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.


--
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 doesn't work with Oracle 11g on Windows 8

2011-09-26 Thread Benjamin Welton

Windows 8?


Its possible he's using it on Windows 8 since the developer preview is 
available. If he actually is id be curious to know if everything works 
ok on windows 8 with python/django.


Ben

On 09/26/2011 04:10 PM, Andre Terra wrote:

Windows 8?

On Sat, Sep 24, 2011 at 5:27 AM, Benjamin Welton 
<benjamin.r.wel...@wmich.edu <mailto:benjamin.r.wel...@wmich.edu>> wrote:


Hey Alec,

django.core.exceptions.ImproperlyConfigured: Error loading
cx_Oracle module: DLL load failed: %1 is not a valid Win32
application.

Do you have the visual c redistributable installed for 64bit and
the Python for windows extensions for 64bit installed?

Ben


On 9/24/2011 3:17 AM, Alec Taylor wrote:

Good afternoon,

Unfortunately DJango doesn't work with Oracle 11g Express on Windows 8 x64.

DJango error:http://pastebin.com/8tAzsjYh  (summary: "No module named
cx_Oracle")

pip install cx_Oracle output:http://pastebin.com/6Y61PqSM

easy_install cx_Oracle output:http://pastebin.com/rCsY63RS

Summary: "Unable to find vcvarsall.bat"

When I try tried the x64 installer from
http://cx-oracle.sourceforge.net/  (using Python 2.7 x64), I got the
following manage.py syncdb error:http://pastebin.com/syqxF4m6

How can I make DJango work with my Oracle 11g Express database?

Thanks for all suggestions,

Alec Taylor



-- 
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
<mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@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.


--
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 doesn't work with Oracle 11g on Windows 8

2011-09-24 Thread Benjamin Welton

Hey Alec,
django.core.exceptions.ImproperlyConfigured: Error loading cx_Oracle 
module: DLL load failed: %1 is not a valid Win32 application.
Do you have the visual c redistributable installed for 64bit and the 
Python for windows extensions for 64bit installed?


Ben

On 9/24/2011 3:17 AM, Alec Taylor wrote:

Good afternoon,

Unfortunately DJango doesn't work with Oracle 11g Express on Windows 8 x64.

DJango error: http://pastebin.com/8tAzsjYh (summary: "No module named
cx_Oracle")

pip install cx_Oracle output: http://pastebin.com/6Y61PqSM

easy_install cx_Oracle output: http://pastebin.com/rCsY63RS

Summary: "Unable to find vcvarsall.bat"

When I try tried the x64 installer from
http://cx-oracle.sourceforge.net/ (using Python 2.7 x64), I got the
following manage.py syncdb error: http://pastebin.com/syqxF4m6

How can I make DJango work with my Oracle 11g Express database?

Thanks for all suggestions,

Alec Taylor



--
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: Section 508 compliance for Django for grant application

2011-05-25 Thread Benjamin Welton

https://code.djangoproject.com/ticket/5635#comment:1

Unless there has been a recent change to this policy, your going to have 
to fill out the section 508 yourself.


Ben

On 05/25/2011 04:00 PM, Lisabeth wrote:

Hello,

I'm part of a bioinformatics team at a small, non-profit biomedical
research institute (Seattle BioMed). We are working on a grant
application that includes Django as we are excited about getting into
python and the BioPython module.

However, to include this technology in the grant, we must assert its
section 508 (accessibility) compliance. Specifically, our IT director
is looking for the "VPAT".  I have found references to people
asserting that it is compliant, but no real resources to assist in
completing the required documentation.

Has anybody got any relevant experience in completing section 508
compliance for Django?  Perhaps someone else has competed for a grant
(successfully or unsuccessfully) that required filling out this form
for Django?  There is the possibility of filling out the compliance
form and certifying it ourselves but I think there is a stigma about
that.

Any advice would be greatly appreciated.

-L.




--
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: Geodjango tutorials?

2010-04-03 Thread Benjamin Welton

Awesome thanks alot derek.

Ben

derek wrote:

On Apr 3, 7:54 pm, derek <gamesb...@gmail.com> wrote:
  

On Apr 3, 4:16 am, Benjamin Welton <benjamin.r.wel...@wmich.edu>
wrote:



Hey All,
  
Im wondering if anyone has some good links to geodjango tutorials

(outside of the main one featured on geodjango.org)? Specifically any
related to Google Map integration (since that subsection appears to be
missing in the current doc's).
  
Thanks

Ben
  

try:http://invisibleroads.com/tutorials/geodjango-googlemaps-build.html



or:
http://www.lonelycode.com/2008/12/04/google-maps-and-django/

  


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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.



Geodjango tutorials?

2010-04-02 Thread Benjamin Welton

Hey All,

   Im wondering if anyone has some good links to geodjango tutorials 
(outside of the main one featured on geodjango.org)? Specifically any 
related to Google Map integration (since that subsection appears to be 
missing in the current doc's).


Thanks
Ben

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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: global name 'self' is not defined

2010-04-02 Thread Benjamin Welton

def __init__(temsilci = None, *args, **kwargs)

should include self as the first argument.

def __init__(self, temsilci = None, *args, **kwargs)

Ben


H.İbrahim Yılmaz wrote:

Hi all,
I get "global name 'self' is not defined" error what is the problem?
Thanks.

from django.db import models
from django.forms import *
from yenicrm.musteri.models import *
from django.contrib.auth.models import User
from django.forms.extras.widgets import *

# Create your models here.
class Ziyaret(models.Model):
tarih = models.DateField()
temsilci = models.ForeignKey(User)
musteri = models.ForeignKey(Musteri)
gorusler = models.TextField()

class ZiyaretForm(ModelForm):
  tarih = DateField(widget=SelectDateWidget())
  musteri = ModelChoiceField(queryset = Musteri.objects.none())

  def __init__(temsilci = None, *args, **kwargs):
  super(ZiyaretForm, self).__init__(*args, **kwargs)
  self.fields["musteri"] = Musteri.objects.none() if temsilci is
None else Musteri.objects.filter(temsilci = temsilci)

  class Meta:
  model = Ziyaret
  exclude = ("temsilci",)

  


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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: Newbie question : passing control from one view function to another. I get a function does not return an HttpResponse object error

2010-01-17 Thread Benjamin Welton

Hey harijay,

   A little warning up front, im fairly new to django as well so if 
there is some issue with my response sorry in advance.
  
   "return HttpResponse()" actually returns just an HttpResponse 
object. If you are coming from ROR its functionality is not identical to 
render (which will render and return the response to the client 
immediately). All HttpResponse does is generate a class that can be 
returned to the django internals to be sent to the client.

def view_func1(request):
if request.user.is_authenticated():
return HttpResponse("Hello world")
else:
return authenticate_user(request)
   |
   |--> why is this return necessary ?
  
   Since the call structure goes similar to this Django Internals -> 
view_func1 -> authenticate_user. That return is required so that the 
Django internals see the HttpResponse Class. Without this return all 
thats passed back to django is None.


Ben

harijay wrote:

Hi i have a question about django and I am afraid it is a slighty
academic question.

I am a newbie at django and I am trying to hand off control from one
view_func1 to another function ( test code below)

I am wondering why although the aunthenticate_user function i.e the
second function returns a HttpResponse object. I still need to add a
return to the calling line
i.e I dont understand why in the code below I need to say

return authenticate_user(request)

rather than just  authenticate_user(request) since this function does
return an HttpResponse object.
If I dont say return authenticate_user(request) , I get a view
function does not return an HttpResponse object error even though the
authenticate_user function is getting called.


Here is the code.
Thanks
harijay


from django.http import HttpResponse
from authenticate_user import authenticate_user

def view_func1(request):
if request.user.is_authenticated():
return HttpResponse("Hello world")
else:
return authenticate_user(request)
   |
   |--> why is this return necessary ?

#file authenticate_user
from django.http import HttpResponse

def authenticate_user(request):
 return HttpResponse("Future view function to handle
authentication")
  


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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 configuration on win/linux

2009-12-24 Thread Benjamin Welton
Thanks for the quick response, I figured i would have to do something 
similar to what you mentioned. I just wanted to make sure there wasent a 
specific way it should be done when using django.

Ben

Łukasz Balcerzak wrote:
> Hi,
>
> For relative paths, os.path module will do the trick - it is platform 
> independent. Use os.path's ``join``/``split`` methods and ``sep`` attribute. 
> If you are depending on absolute paths (which probably for both platforms 
> would just differ) you may simply call platform.system() and write a switch 
> doing the magic depending on what you got.
>
> By the way, having two different files may not be that bad.
> On the other hand, settings module for django is just a python module and as 
> so, you may make any magic tricks you want.
> You may even consider splitting settings or establishing 'ini' file.
>
> Be sure to check wiki at http://code.djangoproject.com/wiki/SplitSettings - 
> there is nice write up about settings module.
>
> Good luck.
>
> On Dec 24, 2009, at 11:25 PM, Benjamin Welton wrote:
>
>   
>> Hey all,
>>
>>Im fairly new to django and iv got a quick question on what the 
>> proper way to set up a django web application is when in a cross 
>> platform deployment environment (such as setting up paths, ect). Im 
>> currently using the Apache wsgi -> django connector on both 
>> environments. Im thinking that one way i could do this would be to have 
>> two separate wsgi files load the proper paths and just tell apache to 
>> use the wsgi file for that particular platform (still leaves and issue 
>> with the settings.py file however).
>>
>>I'm sure that other people have come across this issue and im 
>> curious on what the proper way to set up django for cross platform use 
>> is (without having to keep multiple platform specific files that need to 
>> be swapped in and out).
>>
>> Ben
>>
>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-us...@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-us...@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-us...@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 configuration on win/linux

2009-12-24 Thread Benjamin Welton
Hey all,

Im fairly new to django and iv got a quick question on what the 
proper way to set up a django web application is when in a cross 
platform deployment environment (such as setting up paths, ect). Im 
currently using the Apache wsgi -> django connector on both 
environments. Im thinking that one way i could do this would be to have 
two separate wsgi files load the proper paths and just tell apache to 
use the wsgi file for that particular platform (still leaves and issue 
with the settings.py file however).

I'm sure that other people have come across this issue and im 
curious on what the proper way to set up django for cross platform use 
is (without having to keep multiple platform specific files that need to 
be swapped in and out).

Ben

   

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.