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
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
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
> 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
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
:(
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ó:
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
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
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
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
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
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
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
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
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
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
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,
'
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
>
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.
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):
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
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
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
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
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
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
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
27 matches
Mail list logo