Re: Introduction to Pulpo-Forms

2015-08-02 Thread jogaserbia
Nice one Luciano,

thanks for sharing!

Ivan

On Friday, July 31, 2015 at 5:25:35 PM UTC-4, Luciano Ferrari wrote:
>
> Excellent Fabio!!!
>
> Thanks for the suggestion we will take that into account.
>
> Luciano
>
> El viernes, 31 de julio de 2015, 17:30:07 (UTC-3), Fabio Caritas 
> Barrionuevo da Luz escribió:
>>
>> interesting, thanks for sharing.
>>
>> personally, I think that the organization of files on package is somewhat 
>> confusing.
>>
>> said that, you can use a template (skeleton) as a base to create and 
>> better organize the package.
>> I like these two
>>
>> for a django package:
>>
>> https://github.com/pydanny/cookiecutter-djangopackage
>>
>> or more generic to any python package:
>>
>> https://github.com/ionelmc/cookiecutter-pylibrary
>>
>> It is quite easy to generate a new project skeleton:
>>
>> pip install cookiecutter
>>
>> cookiecutter https://github.com/pydanny/cookiecutter-djangopackage
>>
>> or
>>
>> cookiecutter https://github.com/ionelmc/cookiecutter-pylibrary
>>
>>
>>
>> Em quinta-feira, 30 de julho de 2015 18:46:12 UTC-3, Luciano Ferrari 
>> escreveu:
>>>
>>> Last April we finished the development of a dynamic form builder, called 
>>> pulpo-forms, to use within a Django Project. Today we’re excited to 
>>> announce that we’re making the source code available on GitHub 
>>> .
>>>
>>> Here is a short list with the most important features of this new open 
>>> source tool:
>>>
>>>- Enable users to create forms with an easy drag UI
>>>- Angular directives to render the form  
>>>and the dashboard
>>>- Multi pages forms.
>>>- RESTful API
>>>- Customizable fields validations such as required, length,etc.
>>>- Conditional enable for fields based on other field values (e.g. in 
>>>a food preferences survey, hide the *‘How do you like your steak?’ 
>>> *question 
>>>to someone that previously answered that’s a vegetarian).
>>>- Conditional enable for form pages based on other field values.
>>>- Versions and drafts.
>>>- Integration for Django models.
>>>- Signals.
>>>- Configurable actions – show a thank you screen, send an email, etc.
>>>- Built-in statistics in the dashboard
>>>- Basic field types answers can be filtered in the dashboard
>>>
>>> Since it was made to be flexible from the beginning, this can be 
>>> extended to add new fields, validations and so on.
>>>
>>> We hope you enjoy it, and of coursed we are open to comments, questions 
>>> and pull requests !
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ee2c173-c5d8-4751-8f78-a5bf14c3fb96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Performance

2015-04-20 Thread jogaserbia
You might want to start by posting what you have learned so far (with some 
effort shown). Otherwise, you are asking people to complete your homework 
for you.  Otherwise, post most specific questions for clarification.  

On Saturday, April 18, 2015 at 8:52:13 AM UTC-4, Jasvir Singh wrote:
>
> Hi all. I have an school assignment in which I have to describe a
> piece of code of any open source software and I am going to write
> about django login function (django.contrib.auth.views). I have to add
> "Performance and Drawbacks" also. Can anyone please help me?
>
> I need to know how much efficient and secure django login system is.
> Is there any drawback of django login system?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8db64de1-d164-4dc5-bb50-4a3cc7f86dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django web hosts in Canada

2015-01-30 Thread jogaserbia
Hi All,

Thanks for the ideas.  I'll consider the suggestions.

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f9862c63-ed67-44e1-80cf-4606221f2c3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django web hosts in Canada

2015-01-29 Thread jogaserbia
Hi All,

I would like to deploy my first Django website in the next month or so.  I 
am looking at deployment options, but need some clarification.

1) when id doesn't matter where the servers are

I understand that  in terms of PASS: heroku, AWS, and Google elastic 
beanstalk can all handle Django (python) and postres.

If I want to host on a 'normal' hosting service, which would be available? 
greengeeks just told me that they support Python but not Django, which 
confused me because I thought Django was fully written in Python, so I am 
clearly not understanding the complexities of deploying.  Also, they only 
use MYSQL databases, I wrote my first app using Postgres/POSTGIS as the 
database.

2) when I need servers in Canada

Due to privacy concerns, I may need to use servers that are exclusively in 
Canada.  I cannot seem to find any options on how to host Python/Django and 
postres on Canadian servers.  Does anyone have any pointers on that?


Any advice would be appreciated, as this will be my first run at deploying.

I have been through the heroku example, and it seems nice and easy to 
deploy and I can use Django and they use postgres.  

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d489e516-94d8-46e2-a212-438faa404452%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Redirect not working

2014-12-04 Thread jogaserbia
I now realize that the button type input does not automatically submit a 
form in all browsers.  I changed the button type to submit, and it worked 
to call the testing view.

  
 
 



Thanks for pointing me in the right direction.   Now I am going to try to 
get the data from the function passed to the testing view.  

>
> Ivan
>
>
> On Thursday, December 4, 2014 1:20:15 PM UTC-5, Florian Schweikert wrote:
>>
>> On 04/12/14 18:58, jogaserbia wrote: 
>> > This is what I get from chrome when I click on the button in the 
>> > index.html, but nothing else happens. I bolded what I believe should 
>> > redirect to the testing UR with the lng and lat data.   
>>
>> does it work with hardcoded url? 
>> is the testing url in the rendered index.html? 
>> if the javascript doesn't try to load the testing url there is something 
>> wrong with your js. 
>> Maybe $.get is supposed to get a success function as parameter? (wild 
>> guessing, I'm not a js guy) 
>>
>> and why "redirect not working"? Can't see any redirects in your code. 
>>
>> -- Florian 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/01f8e16a-85bd-4379-9421-d69e0857ef3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Redirect not working

2014-12-04 Thread jogaserbia
Thanks for the reply Florian.

I am unclear on what exactly does the redirecting.  I think you are right 
about the .get. I stripped it out of the code, same issue.  You say there 
is no redirect, I am unclear on what exactly should be doing the 
redirecting.  

What has to be in the index.html to be able to call the testing view?  

Much appreciated.

Ivan


On Thursday, December 4, 2014 1:20:15 PM UTC-5, Florian Schweikert wrote:
>
> On 04/12/14 18:58, jogaserbia wrote: 
> > This is what I get from chrome when I click on the button in the 
> > index.html, but nothing else happens. I bolded what I believe should 
> > redirect to the testing UR with the lng and lat data.   
>
> does it work with hardcoded url? 
> is the testing url in the rendered index.html? 
> if the javascript doesn't try to load the testing url there is something 
> wrong with your js. 
> Maybe $.get is supposed to get a success function as parameter? (wild 
> guessing, I'm not a js guy) 
>
> and why "redirect not working"? Can't see any redirects in your code. 
>
> -- Florian 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f199469e-b3c5-4576-a4b1-dc469ccb6752%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem Making New Django project - please help

2014-12-04 Thread jogaserbia
Are you trying to set it up in a virtualenv?  

On Wednesday, December 3, 2014 10:36:34 AM UTC-5, Shashwat singh wrote:
>
> Django is properly installed but when i try to create a new project --- " 
> django-admin.py startproject abc " it returns ^^ that error. 
> Any help will be highly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67e4f1e0-0e9c-4745-895f-43ee38af4204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Redirect not working

2014-12-04 Thread jogaserbia
Hi,  

I am trying to build a simple app.  On the index.html page an input box and 
button.  I put address in, click box to geocode and output some maps.  When 
I click on the button, the geocoding seems to work (see chrome output 
below), but it does not bring up the testing URL.   

This is what I get from chrome when I click on the button in the 
index.html, but nothing else happens. I bolded what I believe should 
redirect to the testing UR with the lng and lat data.   



   1. Request URL:
   
   
https://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1shttp%3A%2F%2F127.0.0.1%3A8000%2F&5e1=_xdc_._fzm3dd=7767
   2. Request Method:
   GET
   3. Status Code:
   200 OK
   4. 


Any ideas would be helpful. 

Ivan

   1. 
   
*index.html*
...


 


var geocoder

function searchAddress()

{
var address = document.getElementById("address").value;
geocoder.geocode( { 'address': address}, function(results, status) {
  if (status == google.maps.GeocoderStatus.OK) {
  *   $.get("{% url 'testing' %}",*
 var position: results[0].geometry.location
   {
lat: position.lat(),
lng: position.lng()
}

});
  } else {
alert("Geocode was not successful for the following reason: " + 
status);
  }
});
  }


 







*APP\urls.py *

urlpatterns = [
   url(r'^$', views.index, name='index'),
   url(r'^output/$', views.output, name='output'),
   url(r'^testing/$', views.testing, name='testing'),
   ]


*views.py*


def index(request):
return render(request, 'locator/index.html')   



def testing(request):
searchpoint = Point(float(request.GET.get('lon')), 
float(request.GET.get('lat')))
atminfo = AtmInfo.objects.all()[:3]
locations = 
AtmInfo.objects.distance(searchpoint).transform().order_by('distance')[:3]
context = {'atminfo': atminfo, 'locations': locations, 'mainpnt': 
mainpoint}
return render(request, 'locator/testing.html', context)



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b386a6d-70df-4de0-8be2-43897ce7ce07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-21 Thread jogaserbia
Hi All,

Thanks very much for the help.  I managed to figure it out with tips for 
both of you. 

I am not sure exactly what helped finally fix it but:

1) I changed my python version from 64 bit to 32 bit
2) The script in that updated the path variables were pretty messed up, so 
I manually changed them to what they should have been. 
2) I had incorrectly added the GEOS_LIBRARY_PATH of

C:\program files\OSGeo4W\bin\geos_c.dll  

but I should have added:

C:\OSGeo4W\bin\geos_c.dll 

Now, I can just delete the GEOS_LIBRARY_PATH from the project settings and 
things still work, so I guess it must have been the 64 bit vs 32 bit issue, 
or the path issue.  

Thanks again for the advice. 

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05ba169a-f223-4d48-b445-368bebb530cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-20 Thread jogaserbia
Hi Thomas,

Thanks for the reply.  Yes, I am using a virtualenv for this project.  I'll 
try to stick it out with GeoDjango, but I really do not know what to do now 
to try to continue on with the install.  

At this point in my Django career, I am pretty much a monkey banking on a 
keyboard when troubleshooting this type of issue.   On that note, can you 
possible refer me to any program/documentation on how I would troubleshoot 
such an issue (stepping through code, checking variable values, etc).

If and when I get this up and running, I'll have to put all of the info 
somewhere, for other peoples' reference.  

Ivan  

On Thursday, November 20, 2014 9:38:09 AM UTC-5, Thomas wrote:
>
>
> On Nov 19, 2014, at 2:24 PM, jogaserbia <ivanja...@live.ca > 
> wrote: 
>
> > Thanks for the help Carl.  Also, thanks for filing the ticket. 
> > 
> > Every bit of info helps.  I really do like Python and Django so far.   
> > 
> > I am just wondering whether I should just quit trying to make GeoDjango 
> work on my windows machine (at work).  I will be setting up a linux machine 
> at home in the next couple of months, and can try it out again.   
>
> Windows boxes can be cranky and annoying, but I’d stick with it and just 
> Make It Work. Once you have a complete installation (and document how you 
> got there!) you won’t have to think hard about it again. Or use virtualbox 
> (and Docker on top of it) to get started with your Linux installation now. 
>
> You *are* using virtualenv, right? That is very high on my list of things 
> that make my life easier for setting up development systems and deploying 
> to production. You may find that it helps with some of the issues you are 
> seeing on your system. 
>
> > As a workaround, what I could probably do (if I can figure it out) is 
> call the postgres fuctions for distance between Lon Lat points that will 
> serve as the basis for the application that I am building.   
>
> Yeah, I wrote that code back in the day and I would use GeoDjango. Not 
> that it doesn’t do what it says it does, but GeoDjango gives you everything 
> you will need all at once. 
>
> hth 
>
> - Tom 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fa610d6b-352e-411b-b831-1540b2c67724%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread jogaserbia
Thanks for the help Carl.  Also, thanks for filing the ticket. 

Every bit of info helps.  I really do like Python and Django so far.  

I am just wondering whether I should just quit trying to make GeoDjango 
work on my windows machine (at work).  I will be setting up a linux machine 
at home in the next couple of months, and can try it out again.  

As a workaround, what I could probably do (if I can figure it out) is call 
the postgres fuctions for distance between Lon Lat points that will serve 
as the basis for the application that I am building.  

What I am in effect trying to do in the Django app I am building is:

find the closets 3 locations (from a list of locations in a postgres 
database) to the address location that will be passed via input box (and 
might be run through a Google to get the Lon Lat info).  

Thanks again, 

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f6da3ce0-88a0-436d-b6ea-6fb6c3f8505c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-19 Thread jogaserbia
Hi Carl,

Thanks very much for the response.  

I am trying to get GeoDjango up and running (for a couple of days now) and 
am having a really hard time.  

I came across another question on the internet (that does not specifically 
have to do with my issue) that suggested putting this path variable into 
the project setting (today):

GEOS_LIBRARY_PATH = r'C:\Program Files\OSGeo4W64\bin\geos_c.dll'

Sadly, I do not know why this would work to rectify the initial problem. 

I think it gets past the GEOSException error, but another error is coming 
up:

*OSError: [WinError 126] The specified module could not be found*

Since I am new to all of these particular technologies (Django, Python, 
GeoDjango) I do not know where to begin troubleshooting these.  I am not 
even clear on how to read the below traceback (i.e. where the block of code 
are delineated.  I am assuming each time I see *File*, that is a new code 
block that is being run).  

Ivan 


  File 
"C:\Python34\lib\site-packages\django\contrib\gis\forms\__init__.py", lin
e 2, in 
from .fields import (GeometryField, GeometryCollectionField, 
PointField,  #
NOQA
  File "C:\Python34\lib\site-packages\django\contrib\gis\forms\fields.py", 
line
8, in 
from django.contrib.gis.geos import GEOSException, GEOSGeometry
  File "C:\Python34\lib\site-packages\django\contrib\gis\geos\__init__.py", 
line
 9, in 
from .libgeos import geos_version, geos_version_info  # NOQA: flake8 
detects
 only the last __all__
  File "C:\Python34\lib\site-packages\django\contrib\gis\geos\libgeos.py", 
line
61, in 
lgeos = CDLL(lib_path)
  File "C:\Python34\lib\ctypes\__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fa27af4-f7d9-43d9-a522-881d228d9769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia

>
> I just realized something.  
>
 
This are all the files in django.contrib.gis.geos:
 
Notice there is no GEOSException, nor is there GEOSGeometry.   There is 
however geometry.py (which as the class GEOSGeometry in it) and error.py 
(which has the class GEOSException in it).  
 
I am not sure what to do with this information as I am new to 
Python/Django. 
 
 Directory of C:\Python34\Lib\site-packages\django\contrib\gis\geos
11/06/2014  02:02 PM  .
11/06/2014  02:02 PM  ..
11/06/2014  02:02 PM 1,660 base.py
11/06/2014  02:02 PM 4,482 collections.py
11/06/2014  02:02 PM 5,495 coordseq.py
11/06/2014  02:02 PM   813 error.py
11/06/2014  02:02 PM 1,033 factory.py
11/06/2014  02:02 PM25,297 geometry.py
11/06/2014  02:02 PM   810 io.py
11/06/2014  02:02 PM 5,287 libgeos.py
11/06/2014  02:02 PM 1,530 LICENSE
11/06/2014  02:02 PM 5,813 linestring.py
11/06/2014  02:02 PM10,974 mutable_list.py
11/06/2014  02:02 PM 4,400 point.py
11/06/2014  02:02 PM 6,827 polygon.py
11/06/2014  02:02 PM 2,428 prepared.py
11/06/2014  02:02 PM  prototypes
11/06/2014  02:02 PM  tests
11/06/2014  02:02 PM 1,154 __init__.py
11/06/2014  02:02 PM  __pycache__ 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/48dd3430-110f-46db-8b11-4751cb28022e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
I got the same error when I run the following command in the Python Shell:

from django.contrib.gis.db import models 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/776b7522-7d67-4a43-afa3-0caff9c041cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
Python 3.4

On Tuesday, November 18, 2014 9:15:29 AM UTC-5, jogaserbia wrote:
>
> Forgot to mention Django 1.7.
>
> Thanks,
>
> Ivan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4460f8c0-5993-492f-8596-6c72ae2db375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
Forgot to mention Django 1.7.

Thanks,

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67760e86-25d9-4d6b-82cd-47b4d16b92bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ImportError: cannot import name 'GEOSException'

2014-11-18 Thread jogaserbia
Hi,  

I am trying to get GeoDjango up and running.  

I followed these instructions (on Windows 7, Postgres 9.3.5).  

I followed these instructions:

https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#windows

And get the error 

ImportError: cannot import name 'GEOSException'

I am not familiary enough with Python, Django or GeoDjango to be able to 
figure out the issue. 

Any help would be appreciated. 


Ivan 



(ATMapp) C:\Python34\allenvs\ATMappenv\ATMApp>python manage.py 
makemigrations
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", 
line
385, in execute_from_command_line
utility.execute()
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", 
line
354, in execute
django.setup()
  File "C:\Python34\lib\site-packages\django\__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
  File "C:\Python34\lib\site-packages\django\apps\registry.py", line 108, 
in pop
ulate
app_config.import_models(all_models)
  File "C:\Python34\lib\site-packages\django\apps\config.py", line 202, in 
impor
t_models
self.models_module = import_module(models_module_name)
  File "C:\Python34\lib\importlib\__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 2254, in _gcd_import
  File "", line 2237, in _find_and_load
  File "", line 2226, in 
_find_and_load_unlocked
  File "", line 1200, in _load_unlocked
  File "", line 1129, in _exec
  File "", line 1471, in exec_module
  File "", line 321, in 
_call_with_frames_removed
  File "C:\Python34\allenvs\ATMappenv\ATMApp\ATMlocator\models.py", line 2, 
in <
module>
from django.contrib.gis.db import models
  File 
"C:\Python34\lib\site-packages\django\contrib\gis\db\models\__init__.py",
 line 8, in 
from django.contrib.gis.db.models.manager import GeoManager  # NOQA
  File 
"C:\Python34\lib\site-packages\django\contrib\gis\db\models\manager.py",
line 2, in 
from django.contrib.gis.db.models.query import GeoQuerySet
  File 
"C:\Python34\lib\site-packages\django\contrib\gis\db\models\query.py", li
ne 6, in 
from django.contrib.gis.db.models.fields import get_srid_info, 
PointField, L
ineStringField
  File 
"C:\Python34\lib\site-packages\django\contrib\gis\db\models\fields.py", l
ine 4, in 
from django.contrib.gis import forms
  File 
"C:\Python34\lib\site-packages\django\contrib\gis\forms\__init__.py", lin
e 2, in 
from .fields import (GeometryField, GeometryCollectionField, 
PointField,  #
NOQA
  File "C:\Python34\lib\site-packages\django\contrib\gis\forms\fields.py", 
line
8, in 
from django.contrib.gis.geos import GEOSException, GEOSGeometry
ImportError: cannot import name 'GEOSException'

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/645e2d51-f48a-4e93-953d-a284742a81f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
In case anyone comes across this same issue.  

What I did was to navigate to the Scripts folder in the virtual environment 
where I want it. 

Then,  I ran this command:

(virtualenvironment) C:\(path to environment where I want 
psycopg2)\Scripts>python easy_install.exe c:\psycop
g2-2.5.4.win-amd64-py3.4-pg9.3.5-release.exe

On Thursday, November 6, 2014 11:33:41 AM UTC-5, jogaserbia wrote:
>
> Hi All,
>
> I am trying use postgres with Django for the first time.  I successfully 
> downloaded psycopg2 through this site:
>
> http://www.stickpeople.com/projects/python/win-psycopg/ 
>
> It is in my main site-libraries.   However, when I try to run the same 
> command in my virtual environment (when the virtualenv is active)  it does 
> not install it there, but tells me it is already installed, and has the 
> address of the main install on my c drive. 
>
> Any thoughts would be appreciated.
>
>
>
> Ivan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9253b394-26f4-4b5e-8fd7-19c7fac46fbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
Hi All,

I am trying use postgres with Django for the first time.  I successfully 
downloaded psycopg2 through this site:

http://www.stickpeople.com/projects/python/win-psycopg/ 

It is in my main site-libraries.   However, when I try to run the same 
command in my virtual environment (when the virtualenv is active)  it does 
not install it there, but tells me it is already installed, and has the 
address of the main install on my c drive. 

Any thoughts would be appreciated.



Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a3aad384-c100-4372-9e1c-fa198a98eaf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.