Re: Is GeoDjango Too Much For This?

2012-02-24 Thread Alex Mandel

On 02/23/2012 09:54 PM, kenneth gonsalves wrote:

On Thu, 2012-02-23 at 17:13 -0800, DF wrote:

I've been reading a bit about GeoDjango and it sounds intriguing. A
colleague, though, suggested everything that can be done using
GeoDjango is equally efficient utilizing the Google Maps API with
JavaScript or JQuery to obtain the proper coordinates.


if your activity is commercial, google will make you pay. Geodjango with
OSM is free - and OSM is more accurate than google and the raw data is
available. Also look at openlayers - that may fulfill your needs without
geodjango.


The benefits beyond that include things like being able to query your 
data for points within a bounding box, or create a buffer around a point 
to select nearby points, or test if you're points intersect with other 
features of interest.


Thanks,
Alex

--
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: Web App Systems Management Tool for Ubuntu Platform

2012-03-29 Thread Alex Mandel
On 03/29/2012 06:37 PM, Eduardo Bergavera wrote:
> Hi Everyone!
> 
> I would like to ask some guidance regarding anyone who may be
> interested in developing web-based python app for systems management
> in Ubuntu. The web-app acts as centralized interface to manage cloud
> based or physical Ubuntu servers in one location. I'd like it to be
> developed using web2py framework. The system has features found in
> Ubuntu's proprietary systems management tool like Landscape
> --(http://www.canonical.com/enterprise-services/ubuntu-advantage/
> landscape/systems-management)
> a remote management tool for Ubuntu servers and desktops. The project
> combines some essential features of Webmin (webmin.com) and Landscape.
> 
> System Requirements:
> 
> * Django based web app
> * manages Ubuntu desktop or servers thru a single interface
> * require registration of clients (desktop or servers) to be managed
> by the system
> * install, remove, upgrade packages, update history
> * Manage users (create, remove, change password)
> * View system info (cpu, ram, io)
> * email notification such as status of services, package updates
> * support common basic configurations
> * ability to explore filesystem
> * reboot, shutdown remote servers
> * log viewer (/var/log)
> 
> 
> Thank you for your help and guidance.
> 

Take a look at ganeti web manager, it's a Django site for managing
ganeti virtualization clusters. It doesn't do any of the python specific
stuff you're talking about but does do the
creation/deletion/boot/restart/remote console for virtual machines.

Could be a good starting point for you.
https://code.osuosl.org/projects/ganeti-webmgr

Thanks,
Alex

-- 
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: Part site under a dedicated domain

2011-10-02 Thread Alex Mandel
On 10/02/2011 04:12 PM, Michael Ludvig wrote:
> Hi guys and gals,
> 
> I maintain a Django-CMS website running on Django 1.2.5 with a couple of
> pages - one for selling houses, one buying houses, etc. At the moment
> it's all under one domain name (http://patmat.co.nz) with some other
> domains being redirected by Apache to specific pages on the main site,
> for example http://house-buyers.co.nz is redirected to
> http://patmat.co.nz/we-buy-houses/ 
> 
> Now, I would like to have the "We Buy Houses" part of the main website
> accessible directly at http://house-buyers.co.nz - i.e. when someone
> clicks on a link leading to house-buyers.co.nz I want them to get the We
> Buy Houses page without actually redirecting to patmat.co.nz/we-buy-houses
> 
> Similarly the menu created by {% show_menu %} should point to the
> absolute URLs under patmat.co.nz or house-buyers.co.nz respectively. And
> all that, of course, being one Django project with a single database,
> same design templates, same config, same /admin, etc.
> 
> Is this at all possible with Django?
> 
> Thanks!
> 
> Michael
> 

Should be possible with multiple virtual host configs in Apache. One for
each domain with all of them having duplicate mod_wsgi or fastcgi
configs. If you want to force certain urls from one domain to the other
use Apache for that. As far as Django is concerned everything is
relative to the top url whatever that may be. Though you can put in
mulitple hostnames in the admin interface which makes things like
flatpages happy.

Happy ponies,
Alex

-- 
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 as a Standalone Desktop Application

2011-10-21 Thread Alex Mandel
On 10/21/2011 03:02 PM, Ivo Brodien wrote:
> Hi,
> 
>> Could you tell us more about the utility you want to create?  It sounds like 
>> Django might not be the appropriate tool in this case.
> 
> well it is quite simple.
> 
> The user will have to provide some metadata for every week of the year. This 
> then gets printed to a monthly view with the 4 weeks of the month +/- a few 
> days of that month
> 
> A downloadable PDF file will be created which then has to be filled out with 
> more data. This "more data” might be entered via the online interface one 
> day, but that is not sure at all.
> 
> I think with django this is an easy tast.
> 
> This might loos like a typical Excel/VBA and maybe Word thing, but I don’t 
> want to use non open source software for this and since I like Django and 
> there it might be the feature of a online input of the data I want to go with 
> Django.
> 
> What would you recommend?
> 
> 

I've actually thought about this concept for a while too, very similar
use cases of DB data entry front ends to SQLite. If you use sqlite, you
might be able to build something with py2exe/nsis that uses the built in
runserver of django and launches a browser to the local url for entering
into the system.

Thanks,
Alex

-- 
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 as a Standalone Desktop Application

2011-10-22 Thread Alex Mandel
On 10/21/2011 07:35 PM, kenneth gonsalves wrote:
> On Sat, 2011-10-22 at 00:02 +0200, Ivo Brodien wrote:
>> I think with django this is an easy tast. 
>>
>> This might loos like a typical Excel/VBA and maybe Word thing, but I
>> don’t want to use non open source software for this and since I like
>> Django and there it might be the feature of a online input of the data
>> I want to go with Django. 
> 
> simpler to do it in dabo - or just wxPython

Actually it's not, since with Django you can specify table relationships
in the models and the admin is auto-generated.

Also the best part of this design is that you can turn it into a web app
at any time by simply opening a port on a machine to allow others to
connect.

Thanks,
Alex

-- 
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 as a Standalone Desktop Application

2011-10-24 Thread Alex Mandel
On 10/24/2011 03:42 AM, Tom Evans wrote:
> On Sun, Oct 23, 2011 at 2:32 AM, Alex Mandel  
> wrote:
>> Also the best part of this design is that you can turn it into a web app
>> at any time by simply opening a port on a machine to allow others to
>> connect.
>>
> 
> Is that supposed to be a plus? Sounds like a nightmare.
> 
> The smart way to do this is to build a simple wxpython application
> that consumes django web services to CRUD data. You can build your
> reporting tools using django, use the built-in admin, etc, whilst
> exposing only the minimum of web services to allow your app to enter
> information into the system.
> 
> I have a number of non-web django processes, so I'm not against that
> in general. However, installing a full LAMP/WAMP stack, django and all
> required packages onto a single users machine, and have them enter
> data via their browser to their personal django instance is crazy. Not
> only will maintenance be disaster, but you have no data consistency -
> each user has their own stack, including DB. If you have each machine
> connecting to a shared database, well that is even worse, as each user
> would be able to discern credentials which they can use to access the
> DB and meddle directly.
> 
> Cheers
> 
> Tom
> 

In my world the paradigm this replaces is MS Access, which is commonly
used in many government agencies and businesses. My point about doing it
with Django on sqlite using the built in Django server (not apache or a
real server db) is that you build it once and it can scale.

Yes a full web application would actually be the preferred end goal, and
such a desktop deployment could be upscaled to be a server deploy with
very little modification to the Django part.

If you spend a lot of time making a Wx or Qt then want to make it web,
you have write a separate web app and connect via CRUD as you implied.
Basically if I have time to make a great UI and the app doesn't have to
be offline I'll be looking at AJAX stuff in the browser rather than Wx
or Qt because a shared network db might as well run via the browser and
get out of platform dependencies.

Yes, I've built both Wx and Qt apps and found maintenance and
scalability to be a problem for this type of use case.

Thanks,
Alex

-- 
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: Accuracy of GeoIP?

2011-10-27 Thread Alex Mandel
You just need to go to the maxmind website to download it.
GeoIP free data also comes from them but is slightly older and on their
website you can choose country, city and regional datasets to use.

Thanks,
Alex

On 10/27/2011 11:56 AM, Charles Cossé wrote:
> Hello, I've been using GeoIP for a few years ... but the trick is to use a
> different database than the default.  Don't know where to get it, but it's
> called: GeoLiteCity.dat  I'm sure it's readily available, but not with a
> default install (think).
> 
> -Charles Cosse
> 
> On Thu, Oct 27, 2011 at 11:13 AM, Kurtis Mullins
> wrote:
> 
>> I just tried the demo and it put me about 2,500 miles away in Texas. Good
>> luck!
>>
>> On Thu, Oct 27, 2011 at 7:31 AM, Ilya  wrote:
>>
>>> Alan, try out our geolocation solution: Geobaza. We recently updated our
>>> Python API and make Django app.
>>>
>>> High accuracy level for US & exUSSR.
>>>
>>> Install from PyPi: http://pypi.python.org/pypi/geobaza
>>> Docs here: http://geobaza.ru/docs/python/v1/
>>> Demo: http://geobaza.ru/try/
>>>
>>> Feel free to send me your feedback ;)
>>>
>>>
>>> On Thu, Oct 27, 2011 at 10:38, Alan  wrote:
>>>
 Does anyone have experience with the accuracy of GeoIP? I'm getting
 locations that are wildly off...

 When I plug in the IP from http://whatismyipaddress.com/ I get
 somewhere in the middle of Kansas when I'm in Chicago.

 On the other hand using a Google IP address (mentioned in the example
 below) correctly gives the lat/long of Mountain View

 https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/

 I'm referencing data donwloaded from MaxMind:
 http://geolite.maxmind.com/download/geoip/database/
 As instructed by the link above.

 I didn't run into any installation problems, so I assume there's a
 data discrepancy somewhere; does anyone know of any known issues?

 Thanks

 --
 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.
>>>
>>
>>  --
>> 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: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
On 12/19/2011 07:42 AM, Masklinn wrote:
> On 2011-12-19, at 16:30 , Andre Terra wrote:
>>
>> What do you mean by embedded Django interpreter? An instance of python
>> running within Aptana?
> 
> Django performs a bunch of setup which allow for easy import and manipulation 
> of the objects related to the instance, which is the reason why django has a 
> `shell` management command wrapping the Python shell.
> 

Yes it has that
http://pydev.org/manual_adv_django.html

Enjoy,Alex

-- 
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: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
Code completion is subpar, actually one of the worst python editors for
that because you have to pregenerate the lists.

Enjoy,
Alex

On 12/19/2011 04:08 AM, Parisson wrote:
> Eric has a bad logo but does everything you need.
> It is written in Python / Qt and is far faster and lighter than PyCharm (Java
> based) here..
> http://eric-ide.python-projects.org/
> 
> Yomguy
> 
> On 19/12/2011 11:34, Alec Taylor wrote:
>> I'm looking for a Django IDE which incorporates the following features:
>> - Syntax-highlighting
>> - Projects (all code file of the project shown separated by directory
>> in a sidebar)
>> - Tabs (with close buttons on tab)
>> - Code-completion (with good introspection)
>> - Text-zoom support
>> - Start/stop Django server
>> - Run+restart Django server shell (manage.py shell) in project (i.e. below 
>> code)
>>
>> I program on Windows and Linux, so it would be great if the IDE is
>> supported on both platforms.
>>
>> Previously I was using Editra, but I requested an automatic import
>> into embedded interpreter feature in April, which they still haven't
>> integrated. So I am looking at alternatives :)
>>
>> 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: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
On 12/19/2011 05:52 PM, kenneth gonsalves wrote:
> On Tue, 2011-12-20 at 02:23 +1100, Alec Taylor wrote:
>> I am testing each of the ones thus far recommended (even though I hate
>> Eclipse with a vengeance :3). My results you'll find succeeding: [pun
>> intended!] 
> 
> could you put the results in the wiki as and when you test. I personally
> am getting a bit tired of the frequent threads on this subject (must
> have crossed a hundred by now). btw I vote for geany.

I started doing a fairly in depth comparison to try and find stuff I can
recommend to co-workers. Will be happy to post the results when it's
done but would also like to invite people to participate.

https://docs.google.com/spreadsheet/ccc?key=0Am9fdRd4qa9DdHI4UUdqbFI1cDFzTTI3cmkxcVY4V2c

Emacs, Vim etc are not on the list because those are too complicated for
GUI oriented folks, though I agree if you like either of those editors
or lots of keyboard shortcuts to explore those.

For the most part commercial editors are off the list too because many
of them are more than $100 a license per year which is too expensive for
a university lab of 20 people where most of the people only write short
scripts. If you code for a living in the tech world and get paid
decently I can see why PyCharm or WingIDE would be great options.

Thanks,
Alex

PS: email directly your gmail capable email address if you want to help
fill out the report.

-- 
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: Which IDE should I use for Django?

2011-12-20 Thread Alex Mandel
On 12/20/2011 12:40 AM, Masklinn wrote:
> On 2011-12-20, at 08:30 , Alex Mandel wrote:
>> For the most part commercial editors are off the list too because many
>> of them are more than $100 a license per year which is too expensive for
>> a university lab of 20 people where most of the people only write short
>> scripts. If you code for a living in the tech world and get paid
>> decently I can see why PyCharm or WingIDE would be great options.
> Correction w.r.t. PyCharm pricing: the personal license is $99 and upgrade 
> subscription renewals are $59/year (so it's below $100/year past the first 
> year). And for university labs, you'd probably qualify for either Academic 
> ($29/$19) or Classroom ("for educational and teaching uses in classrooms, by 
> professors, trainers, and students.", $0) licenses. Although I would agree 
> PyCharm is way overkill for "short scripts".
> 

I'll have to revisit that since I thought it was Windows only but I
clearly see Mac and Linux downloads on sub pages. Any idea if it
supports virtualenv?

Thanks,
Alex

-- 
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: Which IDE should I use for Django?

2011-12-22 Thread Alex Mandel

On 12/20/2011 06:28 AM, Parisson wrote:

On 20/12/2011 08:23, Alex Mandel wrote:

Code completion is subpar, actually one of the worst python editors for
that because you have to pregenerate the lists.



Eric's completion is based on QScintilla and works fast here..
Do you know any completion system which doesn't have to generate any word list ?

G



Yes, SPE, Pydev, Pythonwin etc all bring up autocomplete options without 
the need to pregenerate lists. If you import a lib it actually parses 
the lib to load the autocomplete options. This is fundamentally 
different from how ERIC's system works where you go into the preferences 
and feed it reference files for various libraries (if they exist) to add 
them to the autocomplete options.


Alex

--
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: Deployment and user libraries (builds on the Django tutorial)

2013-01-17 Thread Alex Mandel
On 01/17/2013 12:11 PM, Frederik T wrote:
> I've worked my way through the Django tutorial successfully, up to 
> https://docs.djangoproject.com/en/dev/intro/reusable-apps/ which worked for 
> the development test server.
> I have refactored out the polls application and turned it into a python 
> package, as suggested, which I then installed as a local user library via "p
> ython setup.py install --user"
> This worked for the dev server as well.
> 
> After that I set up apache and mod_wsgi and configured apache to bind the 
> path to the application to /test/
> (WSGIScriptAlias /test/ /tmp/test/apache/django.wsgi, chowned to 
> apache:apache)
> which also worked.
> What did not work, however, was apache, or python/django finding the polls 
> package.
> 
> I am pretty new to python/django but I am pretty sure that I should 
> relocate the polls package.
> (currently @ /home/me/.local/lib/python2.7/site-packages/)
> Where is the best place to put it?
> Is there a better way to do this altogether?
> 
> 
> 

If you're going to install it as a python package, either install it to
the system or to the user that mod_wsgi executes under or into a python
virtualenv. Basically you need to ensure that it's on the python path
for the user running the wsgi. You can add additional paths to the wsgi
to make sure it gets picked up too.

I also assume that the django site that your wsgi script points at has
your app in the settings.py under Installed Apps.

Enjoy,
Alex

-- 
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: Using postgres Users as django users

2013-04-17 Thread Alex Mandel
It's possible but you may need to split out django and non-django into a 
front and back end. This sounds similar to phpmyadmin or phppgadmin


I think the key to this is that django only be used to store the user 
and connection information for each database (And provide a web 
interface). When a user goes to execute SQL, it should be sent via 
psycopg to pg and the data returned and parsed into an object you can 
then pass into a django page.


So basically you can use the django ORM for the arbitrary sql you want 
to execute on an given database since that needs to occur with a 
specific user/connection information.


This is similar to how pgAdmin works, the big difference here is that 
you're abstracting so that people work over port 80 instead of having 
them direct connect to the db.


Enjoy,
Alex

On 04/17/2013 12:16 AM, Maximilian Tyrtania wrote:



Am Dienstag, 16. April 2013 17:52:11 UTC+2 schrieb אברהם סרור:


So you are saying that each user models will be using the same database
but with different connection settings?



Yes, exactly. Each user has his own username. That's what the SQL command
"create user xy" is for exactly. I don't think my approach is overly
exotic, if I may say so. It enables the db admin to use the finely grained
permissions model of the database and grant or revoke permissions
individually. I realize django can do the same thing, but I don't want to
"copy" my database permissions setup over to django and make sure it's in
sync.



I believe you can create each and every connection setting on your
databases inside settings.py, each one would use the same database but a
different user.
When creating an object specify it to use the corresponding database



Yeah, I realize that this is possible, but this approach, as far as I can
see, comes down to being quite a maintenance burden as I need to have each
and every user (and I got many, >500) be represented in my settings file.
So, am I out of luck?
Thanks,

Max




On Tue, Apr 16, 2013 at 5:27 PM, Maximilian Tyrtania <
maximilia...@googlemail.com > wrote:


I looked at that a bit, thanks, the problem is that I can well use my pg
server to do the authentication, but I still can't talk django into using
the database connection for this particurlar user (hopefully I'm just not
aware of the solution).
You see, lots of my models in models.py are based on database views in
postgres, which in turn make use of the current_user() function. This is
why I need django to use the correct connection settings.

Am Dienstag, 16. April 2013 14:51:18 UTC+2 schrieb אברהם סרור:


I believe you could create a custom auth that relies on the postgres
auth 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...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com
.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.










--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using Django and R in a production environment?

2013-04-24 Thread Alex Mandel

There is another large potential gotcha, R is very memory heavy.
I do think the route of using Celery or other job management tools makes 
sense, especially if you can use R across multiple backend machines. 
Would celery mean one rpy2 per celery? You don't really want all your 
users using the same R session anyways.


Thanks,
Alex

On 04/23/2013 11:08 PM, Derek wrote:

Thanks Per-Olof

No, it has more to do with the issue raised here:
https://github.com/Sleepingwell/DjangoRpyDemo/blob/master/README.md#django-configuration

Possibly Celery could solve that (?) but I really would like to hear from
someone who actually has a production configuration set up and working.
Perhaps there are less people in the sciences using Django than I thought...

Derek

On Tuesday, 23 April 2013 21:32:12 UTC+2, Per-Olof Åstrand wrote:


I am not sure I understand your question, but is it really related to
using specifically R? Could it be any kind of heavy number-crunching that
needs to be done in the background by a scheduler/task manager? In that
case, django-celery may be an option:
http://docs.celeryproject.org/en/latest/index.html

Per-Olof

On Monday, April 22, 2013 9:26:05 PM UTC+2, Derek wrote:


Based on googling around this topic, it seems that using RPy2 is the most
common way to interface with R from Python.  However all the discussions on
this seem to centre around working in a desktop (single user) environment.

The one discussion I could find that deals with the issue of working with
R "at scale" is this one -
https://github.com/Sleepingwell/DjangoRpyDemo/blob/master/README.md#django-configuration
- which indicates problems with this approach; and suggests it might be
able to be overcome via creating distinct processes dedicated to run a WSGI
application (although this article does not give any steps on how to do
this, or whether it would work in practice).

Another approach seems to be to use RPy2, with Twisted to enable multiple
sessions:
https://docs.google.com/presentation/d/11LJxej6jnbYKzJftpDudYFfVKjaB0BhOzrBSKaxJ2ME/edit#slide=id.p
.

Yet another approach might be to use Rserve (
http://www.rforge.net/Rserve/) and PyRserve (
http://pythonhosted.org/pyRserve/manual.html), but the latter seems to
currently be in beta.

Question is: does anyone have any practical experience actually using
Django with R in a production environment (i.e dozens or hundreds of users
doing high volume number crunching)?

Thanks
Derek

PS Yes, we do need R and not one of the Python-based alternatives, as R
offers many routines simply not available in those as yet (also, the client
needs to re-use, and create new, R scripts themselves)







--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using SQL or not

2013-05-30 Thread Alex Mandel
Unless you have a specific need of a NoSQL feature the fact that you 
have many related tables seems a better use case for SQL relational 
database.


Enjoy,
Alex

On 05/30/2013 08:42 AM, Avraham Serour wrote:

can't see the image properly, too small, clicking on larger doesn't load
and the expand button on the right bottom corner doesn't work


On Thu, May 30, 2013 at 5:42 PM, Hélio Miranda  wrote:


Good!
Not sure this is the most appropriate place to put it, if not I apologize.
My question is as follows:
I have to implement a scheme about football, all data on clubs, players
and games as their statistics.
The doubt I have is whether it is more advisable to do it in SQL or NoSQL
as I was asked to do and if you can do in NoSQL. Because it has several
relationships and joins, and joins NoSQL will not.

My scheme is this:
http://www.4shared.com/folder/h_k3P6KE/_online.html

Someone can give me a hint about this?
It is feasible to do in NoSQL, or the best is even in SQL?

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.







--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: postgresql 64 bit in python 32 bit

2013-06-03 Thread Alex Mandel

On 06/03/2013 10:23 AM, Kakar Arunachal Service wrote:

Hi,
I just uninstalled python 64 bit and reinstalled python 32 bit. So i have
postgresql 64 bit in my system. Will it a problem later if i use 32 bit
python in 64 bit postresql?



Should be fine, Python psycopg2 sends SQL commands to postgres, the 
actual execution of code is self contained with the database. So the 
bitness and even what machine each part is on can be completely separate.


Enjoy,
Alex

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Are Web frameworks useful in mobile first world?

2013-08-05 Thread Alex Mandel
On 08/05/2013 06:19 AM, zweb wrote:
> 
> Are web frameworks useful in mobile first world of today?
> 
> With apps required to support multiple front ends including Mobile and Web, 
> is using a web framework like ROR or Django more of a liability.
> 
> Would not a light weight rest framework be better?
> 
> ( Note: I really like Django. It is an awesome web framework.)
> 

REST is a style of url patterns, you still need something to respond to
those requests with data in the right format:
http://django-rest-framework.org/
http://django-tastypie.readthedocs.org/en/latest/

etc...

Enjoy,
Alex

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django performance compared to other web frameworks

2013-08-21 Thread Alex Mandel
On 08/21/2013 10:10 AM, urs.beerli wrote:
> Hi folks!
> 
> I am pretty new to Django and what I have seen so far is very nice, I like 
> it a lot! But one of the most important things to me of a web framework is 
> the performance. If you take a look at:
> http://www.techempower.com/benchmarks/#section=data-r6&hw=i7&test=update
> Django scores not that good (almost in every test). What are the reasons?
> 
> Thanks
> - Urs
> 

Interesting question. Of course all benchmarks tend to be quite
subjective as to testing strengths vs weakness. Some things I see, for
django they used Postgres but for everything else they used Mysql and
its not clear to me if those DB hits are cold start or not. We also have
no idea if the indexes are the same, what tables types are in use and I
assume the db configuration is stock.

Wsgi they used gunicorn, but we have no idea the configuration of it and
UWSGI is considered much faster than gunicorn (which is actually
considered reasonably faster than apache mod wsgi)

Also you need to compare only frameworks of the same type, Django's
strength is in its completeness, of course some other frameworks will be
faster because they are simpler. Many people consider Rails the biggest
competitor to Django (feature and usage wise), if you limit your
comparison to that Django looks quite good.

The reality is you need to make a django app for yourself and see if it
handles the load you want it to handle fast enough for you. At that
point then look for something else. If all your page returns are fast
enough that the user doesn't really notice and it can handle the number
of concurrent users you want, that's all that really matters.

If you really care about it just being as fast as possible, you should
probably be writing it all from scratch or in a minimal framework with
compile optimized code (C++ perhaps).

Enjoy,
Alex

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Geodjango and Kriging

2013-09-07 Thread Alex Mandel
On 09/06/2013 03:51 PM, Matthew Scotch wrote:
> Hi,
> 
> I am new to geodjango and was wondering if it has an API for kriging?
> So far I have not been able to find anything.
> Thanks,
> Matthew
> 

Not really, but you can tie into plenty of backends that give you
kriging ability (Pass data from geodjango and return the results).
Postgis 2.x is going towards having such tools but isn't quite there.
Looking online I see some methods purely in python with Scipy, or you
could use R or GRASS via python, or SAGA via sextant python(QGIS). I
believe gdal even has some interpolation methods built for IDW but not
kriging.

Enjoy,
Alex


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: wsgi vs. debug server URL's

2013-11-12 Thread Alex Mandel
Actually you could modify the project settings.py or urls.py to enforce
that url on the debug servers. This means that the project files will be
different but the app files will be the same between dev and production.

But that's really odd way of doing it, normally on a production server
you wouldn't want to advertise /wsgi to end users. I'd encourage you to
rethink your apache config too.

Enjoy,
Alex

On 11/12/2013 10:21 AM, Avraham Serour wrote:
> it seems to me that this is on your apache configuration nothing to do with
> django or your application
> 
> 
> On Tue, Nov 12, 2013 at 7:42 PM, Sells, Fred
> wrote:
> 
>>  We deploy with Apache and it serves both django and generic html.  We
>> are a small shop with internal applications and minimal server load and we
>> are not ready to have a django server and an html server.
>>
>>
>>
>> I use the /wsgi  prefix in my url’s to identify what goes to django (via
>> the httpd wsgi.conf file)
>>
>>
>>
>> When I deploy with wsgi in production my urls look like
>> http://myserver.mydomain.com/wsgi/myapp
>>
>>
>>
>> But when running the debug server I get http://localhost/myapp
>>
>>
>>
>> Is there a clean way to handle this without having to define the “/wsgi”
>> prefix and use it conditionally based on whether I’m Unix (production) or
>> Windows (debug)???
>>
>> --
>> 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/DCD75728F460F14586086EA606E83082E71EA5D3%40ACEVXCHMBX1001.ADVENTISTCORP.NET
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
> 

-- 
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/52827498.1000904%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Python / Django slow ? Deciding my next technological stack

2015-02-24 Thread Alex Mandel
On 02/24/2015 03:30 PM, Benj wrote:
> Hi,
> i'm going to invest lots of time and energy in various web projects (mostly 
> community web sites), and want to pick up a language / framework and invest 
> heavily on it.
> I've spent a lot of time evaluating the various options, and narrowed my 
> choice to 2 stacks: C sharp asp.net  MVC or Python / Django.
> 
> I'm more attracted to Python / Django combo, because of the Python 
> language, and high level framework Django. I really want to use these.
> My only concern is speed. I read that Python can't run concurrent tasks, is 
> this true ? So a multi-processor with hyperthreads won't benefit the stack 
> and even slow it down ?
> I have no clue how this translates in reality, but should I expect 
> noticable performance difference on a same server, shall I use Python / 
> Django than if I had C Sharp Asp.net ?
> I don't want to invest lots of time and efforts only to discover in the end 
> that the site is slow. 
> You that have real world experiences with running sites, what are your 
> conclusions ?
> 
> 
> I expect sites to be medium traffic: could be handled by a good dedicated 
> server or average cloud ressources.
> 
> Benj
> 

Use a good WSGI like uwsgi or gunicorn and don't use sqlite as your db.
Those WSGI containers are threaded. Don't confuse running python
directly which is different (and there are ways to use multicores even
then).

Plenty of examples of big websites running django out there.
http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views

Enjoy,
Alex

-- 
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/54ED0EB9.2020505%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostGis, GeoDjango. How to install a updated version?

2014-12-12 Thread Alex Mandel
On 12/12/2014 07:06 AM, Collin Anderson wrote:
> Hi,
> 
> What happens when you try?
> 
> Collin
> 
> On Wednesday, December 10, 2014 11:03:16 AM UTC-5, Bruno Messias wrote:
>>
>>
>> Someone managed to install postgis 2.4 and gdal 1:11 on a Ubuntu 
>> distribution 14. I followed several tutorials. I fixed many errors, but the 
>> only thing I can do is instal an older postgis, 2.0.3 (2009) version. 
>>
>> Atualmente, I'm deploying a project that needs of postgis.
>>
> 

This might be better to discuss on the Geodjango mailing list:
https://groups.google.com/forum/#!forum/geodjango

I'm also curious of what the list of error messages are, so that they
can be fixed in the code.

Thanks,
Alex

-- 
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/548B2A39.40902%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to install django on ubuntu 12.04

2015-01-08 Thread Alex Mandel
On 01/08/2015 12:06 PM, nitin katyal wrote:
> As per the Django installation guide, I have installed pip using "sudo 
> apt-get install python-pip". Pip got installed and upgraded successfully, 
> but when I was installing Django using  "pip install django==1.7", the 
> following error appeared:
> 
> "error: could not create '/usr/local/lib/python2.7/dist-packages/django': 
> Permission denied"
> 
> I am a novice, please help me install django.
> 
> Thanks in advance!
> 

That command attempts to install Django for the systemwide python. On
ubuntu this would require sudo(root) priveleges.

sudo pip install django

While that will work, I suspect most people would recommend you use
python virtualenv in order to create python sandboxes. The biggest
benefit is that you can have multiple django versions, each in their own
sandbox (great for testing and upgrades).

Here's a tutorial
http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/

Enjoy,
Alex

-- 
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/54AEF4F2.9090509%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best way to learn Django considering Python versions and etc.

2013-12-10 Thread Alex Mandel
On 12/10/2013 09:54 AM, Tom Evans wrote:
> 
> It is slightly different to what I have described, Django has a
> deprecation policy, features not pending deprecation in X.Y will work
> in X.Y+1 and X.Y+2, features pending deprecation in X.Y will work in
> X.Y+1 but not X.Y+2. This means that what commonly happens is a
> release has a feature that is pending deprecation, you upgrade to the
> release without rewriting/fixing the deprecated section, and then
> update to the next version and find that your code is broken.
> 
>>My intention is not to be critical, as I really like Python and
>> Django.  Similar to learning Node.js and the specification of Dependencies,
>> I have not read or found discussed in an online course, why one might not
>> use the latest version of a dependency... or how one would be needing
>> earlier versions of a dependency or a component of a framework.
>> Thanks in advance for any advice,
>> Bruce
> 
> The reason we version software is so that the API can be fixed at
> particular points. If you write your site for django 1.2, and then
> install django 1.6, it (probably) will not work.
> 
> Cheers
> 
> Tom
> 


Right this is closer to say the difference between Drupal 5,6,7
Django just uses the 2nd level numbering to indicate api compatibility.
So 1.4.x,1.5.x,1.6.x would be the django world equivalent. ie some
migration or code change is involved to move. Keep in mind that Drupal,
Wordpress etc are also release products, not frameworks - you can run
Drupal or Wordpress without writing any code. You can not do the same
for Django. Django is intended to help you write custom websites.

Enjoy,
Alex

-- 
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/52A7916C.7050104%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Connecting to a MS SQL server from django

2014-01-14 Thread Alex Mandel
On 01/14/2014 03:15 PM, Larry Martell wrote:
> I am trying to connect to a MS SQL server from django on Linux using
> Vernon Cole's django-mssql package
> (https://bitbucket.org/vernondcole/django-mssql-ado-merge/src).
> 
> When I first tried to connect it failed with:
> 
> Exception Type: DatabaseError at /report/CDSEM/EventsTable/
> Exception Value: Cannot create connection
> to=PYRO:ado.connect...@xx.xx.xx.xx:9099
> 
> I traced it through
> /usr/lib/python2.6/site-packages/adodbapi/remote.py and I see it tries
> to access os.environ['PROXY_PORT'], which is not defined and then it
> defaults to 9099 - Is that the correct port or should I set
> os.environ['PROXY_PORT']? How can I tell what port MS SQL db is
> listening on? I googled this and it said the default MS SQL port is
> 1433. I set os.environ['PROXY_PORT'] to that and now I don't get that
> error but it times out:
> 
>> /usr/lib/python2.6/site-packages/Pyro4-4.22-py2.6.egg/Pyro4/core.py(160)__call__()
> -> return self.__send(self.__name, args, kwargs)
> (Pdb) n
> TimeoutError: TimeoutE...imeout',)
> 
> I tried opening port 1433 with iptables, but still no joy.
> 
> I can connect to the MS SQL db locally from the host it's running so I
> know it's up and my credentials are correct, and I can ping the
> Windows box from the Linux host I am running on, so I know there is
> connectivity to it from there.
> 
> Anyone here ever get this working? Anyone have any ideas as to what my
> problem is or how I can debug this further?
> 
> Thanks!
> -larry
> 

Check your Windows Firewall settings. You can test from linux using nmap
to port probe.
nmap -PN -p 1433 ip.of.win.machine

It is unlikely to be the linux firewall unless you're filtering all
outgoing data.

Enjoy,
Alex

-- 
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/52D608E5.4050100%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django with no relational db?

2014-01-21 Thread Alex Mandel
On 01/21/2014 06:56 PM, devash wrote:
>  
>  I am building an app with no relational DB. All data will be in flat files 
> now and nosql dbs in future. 
> 
>  I plan to use django-tastypie for rest api and mostly pure python from 
> rest api code to connect to file system and non relational backend python 
> api. I do not plan to use Django ORM. 
> 
>  I will have web pages, d3.js, authenticated users and sessions. 
> 
>  1) Is it even possible to use Django without relational DB? 
> 
>  I noticed many of Django's core app like auth and session depend on having 
> relational DB. Am i correct?
> 
>  2) Does it even make sense to use Django here? Is Django appropriate 
> technology/framework to use here? or any other python alternatives I should 
> look at?
> 

Just use sqlite, that gets rid of any complication/overhead of running a
service based db, and will cover auth stuff. Django really isn't meant
to run from flat files (there is a cheat using django flatpages) but
that's so you can edit through the web.

But yes this might be more than you need and you could look at
Pyramid/Pylons which less stuff to begin with.

Enjoy,
Alex

-- 
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/52DF5AFB.9090908%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Honest feedback

2014-01-24 Thread Alex Mandel
On 01/24/2014 03:04 PM, Bobby Roberts wrote:
> Hi group.  I've been out if the django world for over four years.  I am going 
> to rebrand and replatform away from classic asp.   Don't laugh.  Yes I know 
> it's sad.  Without telling me how good django is, what has changed in the 
> last four year that should make me choose django as my new platform?  Are 
> they still actively developing it ?  Just looking for honest feedback, not a 
> sales pitch.   Thanks in advance 
> 

Have look over the release notes of major versions.
https://docs.djangoproject.com/en/dev/releases/

If you liked django before there's no reason to think you won't like it
now. There are all sorts of optional newer faster ways to get some
things done if you want to use them like the Class Based Views/Forms
auto generated from models (some people aren't fans but they can save
some major time).

Enjoy,
Alex

-- 
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/52E2F3AB.1050306%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: overlay esri shapefiles from database in googlemap

2014-01-28 Thread Alex Mandel
On 01/26/2014 07:07 PM, jenelyn refamonte wrote:
> hello everyone,. i am developing dynamic web mapping application using 
> geodjango framework.. i already displayed a googlemap as my basemap. It is 
> for public users not in the admin interface,.. now, i want to 
> display/overlay my esri shapefiles stored in my postgis databsase to the 
> googlemap.. Its very hard for me. its my first time.. please help me.. is 
> there any tutorial or article that i can base of,.? im stucked here for 
> almost 3 weeks., please please please help.. thanks in advance :)
> 

Try the django olwidget (openlayers widget), it's one of the simpler
ways to get started.

The other tool I use all the time is the python vectorformats library to
convert a django model to geojson which can be passed to a leaflet or
openlayers front end.

Enjoy,
Alex

-- 
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/52E82660.7080403%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Need Help Moving Database to production server

2014-01-28 Thread Alex Mandel
On 01/28/2014 08:15 AM, Mark Phillips wrote:
> On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote:
> 
>> On 28/01/2014 4:51pm, Mark Phillips wrote:
>>
>>> I have a django project running on my laptop. I have (finally) managed
>>> to get it to work with apache on a production server. However, I still
>>> have a problem. When I access the admin site and login as the superuser,
>>> I get "you don't have permission to do anything" message.
>>>
>>
>> I don't think this is a Django problem because the superuser doesn't need
>> any permissions.
> 
> 
> I am pretty sure it is a setup problem, from moving from development to
> production in a different machine.
> 
> 
>> Presumably this is after a successful login - you don't quite specify
>> this.
> 
> 
> Yes. I can login as the super user using the django admin login form, but I
> cannot edit or see any tables in the admin page. Just the you can't edit
> anything.
> 
>>
>>
>>
>>> To migrate the database, I did a mysqldump to a file on the development
>>> machine, then added it to the mysql server running on the production
>>> machine. The only change was in the database name, none of the tables
>>> changed. Is this the problem? Or, am I missing something else.
>>>
>>
>> Did you also change the database name in your production settings.py?
>>
> 
> Yesor I would not be able to login.
> 
>>
>> Otherwise, I'd suspect a mismatch somewhere. For my own setups I always
>> have the same user as the the database owner in Postgres and the superuser
>> in Django. Dunno whether that has shielded me from this sort of problem or
>> not.
>>
> 
> I discovered the problem, but not the solution. I have the following lines
> in my urls.py -
> 
> from django.contrib import admin
> admin.autodiscover()
> 
> which work as expected in my development site. However, in my production
> site if I leave the admin.autodiscover() in the urls.py, I get this error
> message:
> 
> ImproperlyConfigured at /inventory
> The included urlconf inventory_project.urls doesn't have any patterns in it
> 
> When I comment out the admin.autodiscovery(), the site works as expected,
> except for the admin pages.
> 
> So, what do I need to do to make admin.autodiscovery() work in my
> production site - Apache, mod_wsgi, and a virtual environment the same as
> my development machine?
> 

Did you enable the admin in the settings.py and urls.py of the
production server?

Thanks,
Alex

-- 
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/52E827BA.708%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Programmers that work in Aptana from GitHub answer me

2014-02-15 Thread Alex Mandel
On 02/15/2014 11:59 AM, Dennis Lee Bieber wrote:
> On Sat, 15 Feb 2014 09:30:53 -0800 (PST), ??? ???
>  declaimed the following:
> 
>> I need your help. Please.
> 
>   Then I suggest you find some group specific to Aptana...
> 
>   Based upon the Aptana web page, it is a product for developing
> web-sites, with an emphasis on Ruby-on-Rails... The only relationship it
> has to Django is that Django is a product for developing web-sites that
> uses Python as the base.
> 
>   They are completely separate products; someone using Django is unlikely
> to be using Aptana.
> 

Not exactly, Aptana does have PyDev as part of it (might be optional).
Which gets you about the same as Eclipse+Pydev. For those that don't
know Aptana is a custom variant of Eclipse oriented to web development.

Pydev is django aware and virtualenv capable. If you have pydev
installed you'll notice that you can start a new Django project from the
Eclipse menus.

Look for information about Pydev and Django it should be relevant to Aptana.

The steps I would take, make new django project in the IDE. git init,
add, commit and push this structure to your github repo. Make sure to
gitignore the file you store your database password in.

Enjoy,
Alex

-- 
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/52FFCA61.8080809%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Apache with mod_wsgi not serving static files

2014-02-21 Thread Alex Mandel
On 02/21/2014 04:00 PM, Bryan P wrote:
> Hello all,
> 
> My Django application is not serving my static files (CSS, JS) and keeps 
> returning a 404 error. I have set the STATIC_ROOT to the location where I 
> collected all my static files with manage.py and set an alias in my 
> VirtualHost. 
> 
> 
> Here is my Settings.py
> 
> Here is my VirtualHost file
> 
> Here is the 404 file
> 
> 
> 
> 
> and the url it's trying to retrieve them from i
> 
> fixtracker.com/static/BugFixTracker/main.css
> 
> 
> This is running in production with debug set to False, so it shouldn't be 
> relying on Django to distribute the files. Any help is much appreciated. 
> 

How are you referencing the static in your template? Looks like a
mismatch in path. BugFixTracker isn't in /static according to your vhost
file. So shouldn't the url be:

fixtracker.com/static/main.css

Thanks,
Alex

-- 
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/530801F1.5090300%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: confused about sql in django

2014-03-04 Thread Alex Mandel
On 03/04/2014 12:08 PM, Robin Lery wrote:
> Hello,
> 
> I am really being confused. How to use sql in django? I found two:
> 1. Performing raw queries.
> 2.Executing custom SQL directly.
> 
Do you have links for those? I know there is a the raw query mode of
Django, and I'm guessing the other method you refer to is creating your
own db connection directly with the python driver for a particular
database? The raw queries will at least be more similar to the results
you get from the ORM in terms of object types returned, where direct SQL
would require you to take the results, and iterate them into a useful
object.

> Does it have better performance than the django's orm? And how is the
> performance the same between those two?
> 

Probably not better performing than the ORM, I expect the ORM to behave
better. The key is the ORM returns results in an easy to use object that
can be then passed to the templates. It also has options to pre-cache
some results, only query when you actually need it, etc.
However there are some types of queries the ORM can't do, that's
typically when you need the direct SQL methods.

> And lastly, what is sqlalchemy? Are sqlalchemy and django's orm the same?
> In the website of sqlalchemy it says "*SQLAlchemy is the Python SQL toolkit
> and Object Relational Mapper that gives application developers the full
> power and flexibility of SQL*".
> 

No, Django ORM is a competitor of SQL Alchemy. Though you can use either
or both it's just more work for you.


> So I am confused. I will really appreciate very much, if you could help me
> understand the above.
> 
> Thank you!
> 

Enjoy,
Alex

-- 
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/5316376D.6040808%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Pandas in Django

2014-03-08 Thread Alex Mandel
There is no reason to think you can't use Pandas or any other python
library within Django.

In your views.py or in a subfile that it references, import the library
you want, manipulate any objects in django or from the filesystem(in
this case I assume you've saved the csv somewhere django can see it,
real file or fileIO object), then return a result as part of the view.
Traditionally it would be to a rendertoresponse with a template, but
could be a json return if the page is calling it with ajax.

So as others have pointed out:
1. Do you have your csv already loaded as a python object
2. Can you show us the View code your using with Pandas

Thanks,
Alex

On 03/08/2014 01:23 PM, judy wawira wrote:
> here is what i am trying to do 
> 
> I have an application that is django driven that allows users to upload a 
>  csv file , and map concepts to export to a separate application .. 
> essentially a middleware for data migration 
> I would like to provide users with some summary analysis of their data in 
> csv e.g missing values , mapped concepts, and i wish to use pandas for this 
> task 
> From the command line i am able to do the summary statistics, draw charts, 
> but i am not able to do so in django.
> I have checked out djnago-pandas , but this is for interacting with django 
> models , and hence i would have to import csv data into the models to use 
> this.
> I am looking for examples where pandas is working within django, and for 
> this method , i was trying to retirve the header and provide it as a list 
> that i can manipulate in my app
> 
> 
> On Saturday, March 8, 2014 5:16:59 AM UTC-5, Alvin Lindstam wrote:
>>
>> Hello Judy.
>>
>> You could increase the likelihood of a helpful response:
>>
>> -Provide more of the code, such as relevant imports. 
>>
>> -Provide the full error report when you get an exception (copy-pasted).
>>
>> -Use the correct channel. It seems that you are using the pandas library 
>> and the code you included does not contain anything django-related. Does it 
>> run correctly outside of django? Perhaps the pandas community is a better 
>> forum for such issues? http://pandas.pydata.org/community.html
>>
>> Perhaps this is your issue:
>> You call list(), which is a Python built in function that returns a list 
>> (unless you have written or imported your own list function). You then call 
>> the tolist method on that list, but lists doesn't have a tolist method (and 
>> I don't understand why you do it, since it's already a list).
>>
>> Den fredagen den 7:e mars 2014 kl. 03:44:13 UTC+1 skrev judy wawira:
>>>
>>> Hello 
>>>
>>> I have a CSV file that i wish to manipulate based on user inputs and show 
>>> this on a Djnago project
>>>
>>> I dont necessarily wish to save the data in the model 
>>>
>>> Can anyone point me to a direction on how to do this 
>>>
>>> I have tried creating a normal app like below but it says listmethod not 
>>> found 
>>>
>>> mydf = pd.read_csv(file,header=1)
>>>
>>> #get header
>>> cols = list(mydf.columns.values)
>>> colheader = cols.tolist()
>>>
>>
> 

-- 
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/531B9237.6080803%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: "Beginning Geo Django: Rich Gis Web Applications With Python" Where can I get the book?

2014-03-18 Thread Alex Mandel
Thats an interesting dilemma. I just looked around a no one has copies.
The publisher says "The eBook version of this title will be available soon"
http://www.springer.com/computer/book/978-1-4302-2532-4

But I have no idea how long it's said that.

This appears to be the ISBN for the printed version 9781430225317
Some searches show it on back order at every store.

So yes it seems limited quantities and no eBook version yet. Maybe
contact Apress and ask when the eBook will be available.

Thanks,
Alex

FYI: I'm forwarding this to the Geodjango mailing list, you might want
to join it and ask more there. geodja...@googlegroups.com

On 03/16/2014 07:43 PM, ruomu sh wrote:
> Yes I understand. But I could not figure out how can I get it here at 
> Nepal. I will buy it. I find different price listed on internet. Some site 
> say it is out of stock. Is it published only limited copies?
> 
> On Friday, February 21, 2014 6:47:20 PM UTC+5:45, Tom Evans wrote:
>>
>> On Fri, Feb 21, 2014 at 10:15 AM, Ram Shrestha  
>> wrote: 
>>> Dear All, 
>>> I am want to learn GeoDjango in real world application. I believe this 
>> book 
>>> "Beginning Geo Django: Rich Gis Web Applications With Python" is the 
>> best 
>>> book for me. But I could not download download it. 
>>>
>>> If anyone have this book Please share the book with me. Where can I get 
>> it 
>>> for free! 
>>
>> If the author or publisher does not make this book available as a free 
>> download, it is not appropriate to use this list to try to pirate it. 
>>
>> Doing so discourages future authors and publishers from writing books 
>> about Django. 
>>
>>
>> Cheers 
>>
>> 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/53286B1D.6020507%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: Managing translations on a team project

2014-03-24 Thread Alex Mandel
On 03/24/2014 03:24 PM, Tyler Wymer wrote:
> We have finished translating our application into a second language, but 
> are having trouble finding a good solution for keeping this up to date 
> going forward. Currently we have just been sending the .po file to the 
> translator, but as we hope to have the dual language support not be a 
> "beta" thing, we need to find a more serious way to handle this.
> 
> We have about 12 developers spread around the world working full time on 
> the project, which means that strings change rapidly and it's hard to keep 
> up on what is needed for translations before the list gets rather long. Can 
> anyone recommend blogs or tools that can help manage this problem? We would 
> basically love some way to get a list of strings that are currently 
> untranslated generated automatically so our translators can know what needs 
> done.
> 
> We looked into using the django-rosetta project, but seems like it wouldn't 
> work well with our deployment process.
> 

Some ideas
https://www.transifex.com/
http://pootle.translatehouse.org/

Enjoy,
Alex

-- 
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/5330CD82.3050105%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango and Python 3.3

2014-03-26 Thread Alex Mandel
You might get more responses on the GeoDjango mailing list:
geodja...@googlegroups.com

I agree the basic libraries probably all work. Are you sure you used
OSGeo4w with Python3? OSGeo4w ships 2.7.x, so unless the GDAL and GEOS
wrappers also work with Python3 that sounds odd.

pypi page makes it look like those libs work in Python3
https://pypi.python.org/pypi/GDAL/
https://pypi.python.org/pypi/Shapely (Infers Geos)

Thanks,
Alex

On 03/25/2014 05:34 PM, Sam Lai wrote:
> I'm developing a site using Python 3.3, Django, Geodjango and
> PostgreSQL. It is a bit tricky getting all the libraries to work, but
> the stack does work. I installed GEOS using OSGeo4W, but I had to
> explicitly specify the GEOS_LIBRARY_PATH and GDAL_LIBRARY_PATH in
> settings.py.
> 
> On 25 March 2014 23:28, rgreene  wrote:
>> Good day,
>>
>> I'm developing under Windows against a PostGIS database. On
>> https://docs.djangoproject.com/en/1.7/ref/contrib/gis/install/#windows,
>> Python 2.7 is shown in the installation steps. I've been reading up on
>> Python 3.3 (for instance, https://wiki.python.org/moin/Python2orPython3),
>> and as the development is just getting started I would like to go this route
>> if possible. Are their any packages/libraries in the typical
>> Geodjango/PostGIS statck that are not compatible with Python 3.3?
>>
>> Thanks in advance,
>> Randal
>>
>> --
>> 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/5831a490-c1b6-4804-a09e-d99d79648a19%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 

-- 
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/53337086.6080804%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: How transform specific geometry column using Django GIS GeoQuerySet

2014-03-26 Thread Alex Mandel
On 03/26/2014 06:28 AM, Shoaib Ijaz wrote:
> Sorry i mistype queries
> 
>   Network.objects.transform(srid=3857).values('geometry', 'bbox')
>>
>>   SELECT ST_Transform("tbl_network"."geometry", 3857), "tbl_network"."bbox" 
>> FROM "tbl_network"
>>
>>  Network.objects.transform(srid=3857).values('bbox')
>>
>>  SELECT "tbl_network"."bbox" FROM "tbl_network"
>>

You might get more responses on the GeoDjango mailing list:
geodja...@googlegroups.com

I think you syntax might be wrong.
https://docs.djangoproject.com/en/dev/ref/contrib/gis/gdal/#coordtransform

But since your mixing django code and SQL code it's hard to tell what
your doing.

Thanks,
Alex

-- 
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/5333738C.5010403%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: How transform specific geometry column using Django GIS GeoQuerySet

2014-03-27 Thread Alex Mandel
On 03/27/2014 04:53 AM, Shoaib Ijaz wrote:
> 
>>
>> I am doing sql queries in django, the queries that i mentioned above are 
>> print queries of django
> 
> 
>   Network.objects.transform(srid=3857).values('geometry', 'bbox')
> 
>  *This is printed SQL query output of above django query *
> 
>  SELECT ST_Transform("tbl_network"."geometry", 3857), "tbl_network"."bbox" 
> FROM "tbl_network"
> 
>  Network.objects.transform(srid=3857).values('bbox')
> 
> *This is printed SQL query output of above django query *
> 
>  SELECT "tbl_network"."bbox" FROM "tbl_network" 
> 
> 

I see so the 1st query works and the 2nd one fails to do the transform.
I think the problem may be related to you having 2 geometry columns in
the same Postgis table.

Are both of them listed in the geometry_columns view of Postgis.
Typically only 1 can be the default. In this case geometry, so
Geodjango/Postgis is recognizing it as a spatial column. But when it
get's to bbox it doesn't recognize it and doesn't know what the FROM
(current) srid is so a Transform wouldn't work.

One option would be to return the data and then transform it once you
have the spatial objects into python variables.

Thanks,
Alex

-- 
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/53347120.7000501%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: why does django user require create database privlages for testing

2014-04-23 Thread Alex Mandel
If you don't want to setup a test db with permissions for a test app,
use sqlite. I can't see why you'd ever want to give your web app carte
blanc permissions to run all over your db server.

Seems to me "you create a test database as super user" is the same as
changing to a db admin user, creating a db and auth for access to that db.

Thanks,
Alex

On 04/23/2014 01:51 PM, Bill Freeman wrote:
> Because virtually all of us don't want our production database used for
> testing.
> 
> 
> On Wed, Apr 23, 2014 at 4:18 PM, dacresni  wrote:
> 
>> Rails doesn't require this, you create a test database as super user and
>> it uses it for testing. Why doesn't django allow this?
>>
>> --
>> 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/79bc208a-8e2e-4b8c-a442-19e0f489ecf2%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> 

-- 
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/535829E6.1090109%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostgreSQL, queries, speed

2014-06-16 Thread Alex Mandel
If you stick to stock python commands virtualenv shouldn't be involved
at all and you can just point to the system python.

Thanks,
Alex

On 06/16/2014 08:16 PM, Lachlan Musicman wrote:
> Thanks Russ, appreciated.
> 
> Out of interest, how do people use plpythonu in postgres when virtualenv'd?
> 
> I'm seeing a lot of "set the PYTHONPATH envvar in Postgres" answers is
> this the way?
> 
> What if I have 3 virtualenvs (dev, stage, prod) on the same machine,
> each grabbing a different DB (dev, stage, prod) from the same postgres
> server? I guess I set it to the PATH to prod's virtualenv because it's
> the most conservative but closest to dev?
> 
> L.
> 
> On 17 June 2014 13:04, Russell Keith-Magee  wrote:
>>
>> On Tue, Jun 17, 2014 at 9:25 AM, Lachlan Musicman  wrote:
>>>
>>> Thank Glen, appreciated.
>>>
>>> Now reading about indexes I can't believe I've not used them previously.
>>
>>
>> Indicies are definitely your friend - *especially* on PostgreSQL. :-)
>>
>>>
>>> Does the addition of "db_index=True" to a field require a migration,
>>> or is it acceptable to just add. I guess that it will require a
>>> migration, since it's a DB level change. Or an instruction to the DB
>>> to perform an action that will stay in the DB, rather than within the
>>> app?
>>>
>> Yes, a migration will be required. Once tables have been created, no change
>> to the model file are reflected in the database unless you perform a
>> migration.
>>
>> In raw PostgreSQL compatible SQL, you're looking for:
>>
>> CREATE INDEX "appname_tablename_columnname" ON "appname_tablename"
>> ("columnname");
>>
>> (substituting the app name, table name and column name as appropriate). This
>> will create a BTree index. There are other index types and options for
>> indicies, all of which have different search properties; however, if this is
>> your first time really using indicies, a BTree is a decent place to start.
>>
>> Yours,
>> Russ Magee %-)
>>
>> --
>> 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/CAJxq848Mgm5z5vJtkez6u8THMknZOk6FO5joB0O-mDC0O3T4CQ%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 

-- 
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/539FE53B.1050100%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango/PostGIS installation issues

2014-06-27 Thread Alex Mandel
On 06/27/2014 01:47 PM, Ben Dean wrote:
> I'm stymied on installing GeoDjango with Postgres9.3 on Ubuntu. I've posted 
> the details here 
> ,
>  
> so any help would be appreciated and I can promise you all the internet 
> points I'm capable of distributing!
> 

Try the Geodjango mailing list
https://groups.google.com/forum/#!forum/geodjango
OR IRC
#geodjango on freenode

Thanks,
Alex

-- 
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/53ADDE80.1030803%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango/PostGIS installation issues

2014-06-27 Thread Alex Mandel
On 06/27/2014 02:13 PM, Alex Mandel wrote:
> On 06/27/2014 01:47 PM, Ben Dean wrote:
>> I'm stymied on installing GeoDjango with Postgres9.3 on Ubuntu. I've posted 
>> the details here 
>> <http://stackoverflow.com/questions/24459737/installing-geodjango-postgis-package-broken>,
>>  
>> so any help would be appreciated and I can promise you all the internet 
>> points I'm capable of distributing!
>>
> 
> Try the Geodjango mailing list
> https://groups.google.com/forum/#!forum/geodjango
> OR IRC
> #geodjango on freenode
> 
> Thanks,
> Alex
> 

While your at it, your question need more info.
What Distro/Version are you using and what version of postgis and gdal
do you want to use.

The simple answer is you have multiple conflicting repos. Straightening
those out will resolve the issue. This issue has been discussed on the
UbuntuGIS mailing list too.

Thanks,
Alex

-- 
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/53ADE3F8.7070105%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-26 Thread Alex Mandel
I'll add that you could also use Geonode http://geonode.org/ which is a
Django front-end to a Geoserver instance.

I've also run Tilestache directly on GeoDjango tables stored in Postgis
to generate TMS style services.

Enjoy,
Alex

PS: GeoDjango has it's own mailing list.

On 03/20/2017 01:05 AM, Jani Tiainen wrote:
> Hi,
> 
> There are several options how to actually server maps.
> 
> Few simplest options are running seperate server that serves maps like
> MapServer, GeoServer or Mapnik.
> 
> Of course if you want to serve maps from Django directly that maybe tricky.
> 
> That django-wms package seems to leverage MapServer mapscript to publish
> maps. Not sure how mature that project is.
> 
> On 18.03.2017 14:51, Samuel Brunel wrote:
>> Hello,
>>
>> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ?
>>
>> Best regards,
>>
>> Samuel
>>
> 

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/206545b6-143a-34b6-68e0-74211fd5ed38%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango: strip z dimension; force 2D

2016-03-07 Thread Alex Mandel
1. There a GeoDjango sublist, better place to ask.
2. Strip out the Z when doing the database import, you don't say which
db backend your're using.
2a. If you can't do it on import than do it with an update query.

http://gis.stackexchange.com/questions/78142/how-can-i-strip-out-z-values-in-postgis

Thanks,
Alex

On 03/07/2016 10:36 AM, Jônatas Castro wrote:
> In my project I need to import *shapefiles* and same some geometry.
> 
> Some of these are *MULTIPOLYGON Z* type, but all Z coordinates are 0-value.
> 
> When I try to save the geometry, I get the error: *"Geometry has Z 
> dimension but column does not".*
> 
> *What is the best way to strip the Z dimension?*
> 
> 
> 
> My code:
> 
> 
> 
> *ds = DataSource(file_path, encoding='ISO-8859-1')layers = ds[0]*
> 
> *#need something HERE to coerce geometry to 2D*
> 
> 
> *obj=MyModel(geometry=GEOSGeometry(layers[0].geom.hex))*
> *obj.save()*
> 

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56DDCDCF.5090908%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: Where to put wsgi code in Apache in Ubuntu?

2015-07-12 Thread Alex Mandel (wildintellect)
On ubuntu using vhosts, /etc/apache2/sites-available/
then run a2ensite to enable the conf you make, if you just toss the conf into default an apache reload is all you need.
-Alex
On Jul 12, 2015 3:56 PM, John   wrote:If your install of apache is httpd, /etc/httpd/If is apache2, /etc/apache2/Under this folder, you may have conf and conf.d directories. You will find the httpd.conf of apache2.conf ;)On Jul 12, 2015, at 7:54 PM, Christian Kleineidam  wrote:The Django documentation tell me to putWSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com

mysite.com/mysite>

Require all granted


Into the httpd.conf-file. Such a file doesn't exist on Ubuntu. Where does it go?(I also posted this question to stackexchange but didn't get an answer over there: http://unix.stackexchange.com/questions/215179/where-do-i-put-the-information-for-django-in-apache2-in-ubuntu)

-- 
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+unsubscribe@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/42dfb499-c5ee-433d-ab6a-49b03ddb5d75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




-- 
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+unsubscribe@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/8355CE53-EEB4-490F-8F52-DB7F6E170A3A%40me.com.
For more options, visit https://groups.google.com/d/optout.




-- 
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/59c565a1-5d4f-4cc4-bcf3-4683ebf64f34%40email.android.com.
For more options, visit https://groups.google.com/d/optout.