Thanks for the welcome Russ, will keep an eye on those posts. Haha not
sure how much I could help out considering it's full on scripting but from
cartographic/projections/georeferencing side I m sure I could assist you
lot.
Cheers
Niall
On Sunday, 9 November 2014 10:03:49 UTC+10, Russell
In case anybody was following this discussion:
I have written a blog post about my conclusions here:
https://kayemyles.com/blog/using-django-17s-migrations-framework-with-mezzanine/
...and opened an Issue in Mezzanine to address the situation here:
https://github.com/stephenmcd/mezzanine/issues/1
Hi Niall,
On Sat, Nov 8, 2014 at 3:39 PM, Niall wrote:
> Hi Django-users,
>
> Just to introduce myself to this group, I'm Niall and I have been working
> in web development for the last year and a half. I'm pretty new to the
> Django stuff so please excuse my noob questions :)
>
Welcome to the
While I haven't tried running management commands in a shell other than
bash, it's possible that the commands are relying on environment variables
that may not be accessible or set/available in zsh. Trying running them in
bash or sh if available.
If you are running them directly via one-time SSH c
Ok i'm running this on a cygwin zsh shell.
with python 3.4.1 and Django 1.7.1
I've been running the first app Tutorial on the Django site and its all
been going perfectly right up to this moment and i'm absolutely stumped.
When i try to run "./manage.py createsuperuser" it gives me this error.
You generally would store the necessary information as part of your view,
or more likely as part of the form, inside the database for later
retrieval.
In your scenario though, your AJAX requests should be using GET or HEAD
requests, and even the search form itself should be using a GET action,
all
what you change (since it is just a mysql) is the host ip!
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'db_name',
'USER': 'db_name',
'PASSWORD': 'db_password',
'HOST': 'serverIPAddress',
This happens because "result" is class level attribute, not instance one,
and its expected behaviour in Python.
To made result instance attribute, define it in your __init__:
class Demo():
def __init__(self):
self.result = []
def do_something(self):
self.result.append(1
here is what is gives in the console:
class Demo():
result = []
def do_something(self):
self.result.append(1)
self.result.append(2)
self.result.append(3)
return self.result
demo = Demo()
result = demo.do_something()
result
[1, 2, 3]
demo = Demo()
you are calling the function twice, appending every element, and then
appending the whole list!
Le samedi 8 novembre 2014 18:07:04 UTC+1, monoBOT monoBOT a écrit :
>
> Lists are inmutable You are modifiying the same list everytime you
> invoque that view
> El 07/11/2014 10:08, "termopro" >
Lists are inmutable You are modifiying the same list everytime you
invoque that view
El 07/11/2014 10:08, "termopro" escribió:
> I have a view in Django which calls external library/class. The problem is
> that for some reason Django keeps caching results coming from previous
> calls of that
It resolved.
I used "Template" in Database.
It was the cause.
It was a simple mistake.
Thank you.
2014年11月5日水曜日 11時25分27秒 UTC+9 Nakaya Mitsuo:
>
> I got AttributeError.
> Exception Value: 'Template' object has no attribute 'render'
>
> How can I fix it?
> Please help me.
>
> --- CODE -
and dont forget to use an font that is unicode, using CSS3.
Le samedi 8 novembre 2014 16:47:42 UTC+1, Aliane Abdelouahab a écrit :
>
> in your html you add
>
>
> Le samedi 8 novembre 2014 09:19:10 UTC+1, Hossein Rashnoo a écrit :
>>
>> When i return Persian characters in view.py (same as Arabic c
in your html you add
Le samedi 8 novembre 2014 09:19:10 UTC+1, Hossein Rashnoo a écrit :
>
> When i return Persian characters in view.py (same as Arabic characters) i
> got an error , So i add this line to top of view.py:
> # encoding=utf-8
>
> And now my Persian word is like this :
> �
> A
Hi Django-users,
Just to introduce myself to this group, I'm Niall and I have been working
in web development for the last year and a half. I'm pretty new to the
Django stuff so please excuse my noob questions :)
I do have a lot of experience in GIS so if you have any questions which may
be of
When i return Persian characters in view.py (same as Arabic characters) i
got an error , So i add this line to top of view.py:
# encoding=utf-8
And now my Persian word is like this :
�
And when i add 'u' before my word again i got error,I run django on Linux
with Apache. Please help me and s
Thanks James. In the case of using GET there seams to be plenty of log
analyzers, so we have a lot of options.
Any best practice / experience when using POST?
I understand we can store the query to the DB, even using django model for
that. But I am afraid of the performance hit.
Radek
On Sat
Wouldn't all of your AJAX requests be logged in your web server access
logs, assuming that you are using GET requests for your searches? You can
parse those for analysis.
You could also probably configure Whoosh or whatever calls the search
function to write a record in the database with the quer
18 matches
Mail list logo