Re: Open Sqlite database file directly in django

2018-05-23 Thread Sourabh Jaiswal
Hi, Thanks a Lot for your reply. Using standard python lib you are saying that I should send the data from view to template render using context dictionary.. right? But in my case data can be huge... Is that a good way to do it? Regards, Sourabh Jaiswal. On Tuesday, May 22, 2018 at 5:55:32 PM

Re: money field question

2018-05-23 Thread Mike Dewhirst
On 23/05/2018 12:31 PM, Simon McConnell wrote: I'm in a similar boat at the moment.  There is https://github.com/vimeo/py-money too. I looked at that but it probably won't ever support exchange rates. Not sure yet if that is a show stopper because maybe forex is a separate thing anyway. I do

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
Okay, squashing seems to have resolved this issue... Seems a bit voodoo-ish, but it worked. Any suggestions for preventing this in the future would be nice! - Benjamin On Wednesday, May 23, 2018 at 6:04:47 PM UTC-4, Benjamin Schollnick wrote: > > > Not convinced yet this is a py2 vers

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
> Not convinced yet this is a py2 versus py3 problem. First, you're running > different command flags (though, not sure it matters in this case). > Second, the > Django version for py3 can be different from the py2 version. > > From the backtrace it isn't clear though which app is causing thi

Re: Starting your first app

2018-05-23 Thread Melvyn Sopacua
On woensdag 23 mei 2018 22:59:50 CEST Caleb Bryson wrote: > Hey I am new to python and i am trying to use django to make my first web > page. I know the basics of python but i am stuck on the step where you > start your app. i made sure i have a directory and have installed south to > help out :(

Re: Starting your first app

2018-05-23 Thread squal poreover
Your manage.py file isn't in the right directory. On Thu, 24 May 2018, 3:11 am Gerardo Palazuelos Guerrero, < gerardo.palazue...@gmail.com> wrote: > Please use djangogirls tutorial > > --- > Gerardo Palazuelos > Enviado desde mi iPhone > > > El 23/05/2018, a la(s) 14:59, Caleb Bryson > escribió:

Re: Starting your first app

2018-05-23 Thread Gerardo Palazuelos Guerrero
Please use djangogirls tutorial --- Gerardo Palazuelos Enviado desde mi iPhone El 23/05/2018, a la(s) 14:59, Caleb Bryson escribió: > Hey I am new to python and i am trying to use django to make my first web > page. I know the basics of python but i am stuck on the step where you start > you

Starting your first app

2018-05-23 Thread Caleb Bryson
Hey I am new to python and i am trying to use django to make my first web page. I know the basics of python but i am stuck on the step where you start your app. i made sure i have a directory and have installed south to help out but when i type "python mange.py startapp blog" it keeps giving me

Re:

2018-05-23 Thread 'Anthony Flury' via Django users
Does the file actually exist - it should be in : *my_site/polls/templates/polls/* https://docs.djangoproject.com/en/2.0/intro/tutorial03/#write-views-that-actually-do-something     Assuming you haven't changed the TEMPLATES settings in some way. -- -- Anthony Flury email : *anthony.fl...@bt

Re: Passing values from Python to Javascript

2018-05-23 Thread Cuneyt Mertayak
As you can guess this is general problem for all backend languages for passing data to JS. AFAIK the standard practice is attaching the value to a DOM element as "data" property and using fetching the value from that element in your JS. If it is a primitive value it is easy to do so, if it is

LocaleMiddleware ignored when custom 404 handler is set

2018-05-23 Thread Дмитрий Перегудов
Hello! I'm using urls with *i18n_patterns *with *LocaleMiddleware* and custom 404 error handler. When I try to open any url without a language code an error 404 is returned by custom 404 handler. I see *process_response *in *LocaleMiddleware* is not run in this case, so redirect to default l

Re: geodjango wrong srid when it saves feature

2018-05-23 Thread Majid Hojati
in fact I tried this and problem solved I have no idea why this happened geom_t = feat.geom.transform(wgs84, clone=True) geom= GEOSGeometry(geom_t.wkt,4326) On Wednesday, May 23, 2018 at 7:54:46 PM UTC+4:30, Daniel Germano Travieso wrote: > > Hello! > > You should probably use the LineString fr

Re: geodjango wrong srid when it saves feature

2018-05-23 Thread Daniel Germano Travieso
Hello! You should probably use the LineString from django.contrib.gis.geos to store Geo objects on the database Hope it helps. *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Wed, May 23, 2018 at 11:54 AM, Majid Hojati wrote: > Hi, > I tried to read data fr

Re: Edx LDAP Auth setting

2018-05-23 Thread Abdelkrime Agrou
Hi could you help me please, I would like to configure LDAP Active directory with my new installation of open edx native. Please help me to get that working. Thnaks Regards, Le lundi 13 février 2017 10:10:53 UTC, Faruk D. a écrit : > > Hi Yip, > > I could fix the issues. > > Thank you very much

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Daniel Germano Travieso
As Melvyn statet, I do not believe this is a py2 vs py3 issue. On your stacktrace it seems as the migrations of the quickbbs app are conflicting in some way. Maybe a migration was created using py2 and another using py3 (as they were created 6 months appart - the name of the migration is a timest

Re: Multisite strategy

2018-05-23 Thread Daniel Germano Travieso
Hello! The Sites Framework is exactly what you need (and the proper internationalization/localization for the languages). Just set up your 3 sites the Django way (creating the propper settings.py for each site) Then you can run each site using `manage.py runserver --settings .py` You can access e

geodjango wrong srid when it saves feature

2018-05-23 Thread Majid Hojati
Hi, I tried to read data from a shape file and save them into database. well here is my code lyr = ds[0] for feat in lyr: geom_t = feat.geom.transform(wgs84, clone=True) print(geom_t.wkt) print(feat.geom.wkt) name ='' Twoway='1' data = { 'name': name, '

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Melvyn Sopacua
On woensdag 23 mei 2018 12:55:58 CEST Benjamin Schollnick wrote: > nerv:quickbbs Benjamin$ manage.py migrate --run-syncdb > (quickbbs) nerv:quickbbs Benjamin$ python3 manage.py migrate > > Running on nerv.local > > CommandError: Conflicting migrations detected; multiple leaf nodes in the >

Re:

2018-05-23 Thread James Farris
I assume you mean TemplateDoesNotExist and I also assume you have created a templates folder in your project and have details.html in it. If that’s the case did you check your settings.py for your template settings? It should look something like this. TEMPLATES = [ { 'BACKEND': 'django.template.

Re: Passing values from Python to Javascript

2018-05-23 Thread Akshay Gaur
Hi Steve, I am new to Django as well. To do what you wanted to do (pass values from python to js), I used ajax queries (using jquery) and then did a JsonResponse to the ajax call. The ajax call then handles the data as required. Sample usage: VIEWS.PY: class InstructorDeleteView(DeleteView):

Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Benjamin Schollnick
I've an established Django application that I'm finishing up a new release for, and I'm working on solving any last python 3 issues. I'm confused at what's happening here though... Run manage.py migrations under v2.7x: nerv:quickbbs Benjamin$ manage.py migrate --run-syncdb Running on nerv.loca

Passing values from Python to Javascript

2018-05-23 Thread steve Valet
I am trying to pass values from Django/Python to Javascript, and have it working to a degree, but need some assistance (obligatory: I'm new to Django so could be hosing this) I have three files in play here, *views.py, app.js, home.html*. I can get the values passed to home.html as part of the

Re:

2018-05-23 Thread Umar Kambala
Yes its spelled correctly on the command window its telling me TemplateDoesNotExit: polls/detail.html On May 23, 2018 9:58 AM, "tango ward" wrote: Check if your template name is correct in your views.py On Wed, May 23, 2018 at 5:56 PM, Umar Kambala wrote: > Plz need help > I found this problem

Re:

2018-05-23 Thread tango ward
Check if your template name is correct in your views.py On Wed, May 23, 2018 at 5:56 PM, Umar Kambala wrote: > Plz need help > I found this problem TemplateDoesNotExit at /polls/1/ where might have I > gone wrong? > > -- > You received this message because you are subscribed to the Google Groups

[no subject]

2018-05-23 Thread Umar Kambala
Plz need help I found this problem TemplateDoesNotExit at /polls/1/ where might have I gone wrong? -- 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+u

Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-23 Thread Avitab Ayan Sarmah
Show your URLs.py On Wed 23 May, 2018, 3:22 PM Umar Kambala, wrote: > Plz I need ur help, I found this error TemplateDoesNotExit at polls/1/ > On May 22, 2018 6:29 PM, "김영찬" wrote: > >> urlpatterns = [ >> path('', include('polls.urls')), >> path('admin/', admin.site.urls) >> ] >> >> In this chu

Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-23 Thread Umar Kambala
Plz I need ur help, I found this error TemplateDoesNotExit at polls/1/ On May 22, 2018 6:29 PM, "김영찬" wrote: > urlpatterns = [ > path('', include('polls.urls')), > path('admin/', admin.site.urls) > ] > > In this chuck of code, you should write like this, > > urlpatterns = [ > path('polls/', inclu