Re: mixing python , php and django

2014-08-15 Thread ngangsia akumbo
what did he wanted you to build it with?

On Thursday, August 14, 2014 7:21:19 PM UTC+1, mike wrote:
>
> I recently met a business man in my community that was looking to hire 
> me to put together some school intranets.. long story short, I told 
> him no because he would not allow me to develop in Django/Python. I 
> don't need that in my life. :) 
>
> Mike 
>
> On Thu, Aug 14, 2014 at 12:28 PM, Nikolas Stevenson-Molnar 
> > wrote: 
> > Well, there's always: http://animuchan.net/django_php/ 
> > 
> > _Nik 
> > 
> > 
> > On 8/14/2014 1:24 AM, ngangsia akumbo wrote: 
> > 
> > I am working with a php guy in my office . 
> > He is asking me how can we mix php and django? 
> > Cos he want that when we have a project to do he should be able to 
> > paticipate using php in building the project 
> > 
> > can someone give me some tips 
> > 
> > -- 
> > 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. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/07bbe137-9497-495f-adfa-77d0e82d2b7e%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...@googlegroups.com . 
> > To post to this group, send email to django...@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/53ECE3B6.8020306%40consbio.org.
>  
>
> > 
> > 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/0c6f20db-a30a-4334-9ac7-261c278c736c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Looking for a pointer

2014-08-15 Thread Matt Lind
I am using this project here:

https://github.com/Alem/django-jfu

Everything is installed and working properly.

The project includes a progress bar logic that I'd like to re-use elsewhere 
on my site.

The progress bar filling appears to happen when the "Start Upload" buttons 
are clicked.

However I can't seem to find the logic as to where or why that bit of code 
kicks off.

Can anyone out here enlighten me as to where the "on-click" type action is 
taking place?

Thanks

-- 
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/052d78bb-e4f8-480f-be3b-fcb1cc86593a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a pointer

2014-08-15 Thread Collin Anderson
It's happening somewhere in the 
javascript. https://github.com/Alem/django-jfu/tree/master/jfu/static/js

-- 
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/7d3e9e27-ee11-48ec-9368-8f38ba055dbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a pointer

2014-08-15 Thread Matt Lind

What I am wondering is how the Button type "Submit" is calling that JS some 
where.

I don't see any specific script/method calls on the upload_form.html page, 
which specifically is where the bar "shows up".

Thanks

On Friday, August 15, 2014 8:34:43 AM UTC-4, Collin Anderson wrote:
>
> It's happening somewhere in the javascript. 
> https://github.com/Alem/django-jfu/tree/master/jfu/static/js

-- 
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/a7edbe7d-25ac-424f-9351-8f5288c7be0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a pointer

2014-08-15 Thread Matt Lind
I think I found it.

It appears that the form has a name called "fileupload" and submits back to 
the orginal page.  From there the JS fires off.

I guess I'll have to see how to modify this.

Any other pointers would be appreciated!

On Friday, August 15, 2014 8:34:43 AM UTC-4, Collin Anderson wrote:
>
> It's happening somewhere in the javascript. 
> https://github.com/Alem/django-jfu/tree/master/jfu/static/js

-- 
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/ac4718a9-f166-4504-b47a-61385f485790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a pointer

2014-08-15 Thread Collin Anderson
main.js looks for 
https://github.com/Alem/django-jfu/blob/016736a633359a032f84c7369591d8502247350f/jfu/static/js/main.js#L17

-- 
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/d92e044a-2847-4f8b-a590-68bd117baafc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: dba designer consulting needed

2014-08-15 Thread Mike Dewhirst

Robin

Thanks for responding ... I have a couple of local people to see and I 
expect to engage one of them. If that doesn't work out may I get back in 
touch with you?


Thanks

Mike

On 15/08/2014 3:21 PM, Robin wrote:

Mike

Firstly, I must say how nice it is to see somebody being concerned to
get the data model correct, it happens less and less frequently, these
days.

Whilst it is important to have a DBA onboard, I must point out that i
have met few DBAs who have the necessary  abstraction skills do do the
design job single handed. Somebody who is used to switching between
logical and physical design, with a view to creating the most efficient
and cost effective design rarely spends much time working as a DBA.

If you were to consider a consultant from outside Melbourne, I would be
interested in offering my services. I have extensive experience in
various industries including Healthcare, Telecoms, Banking,  Primary
Industries and Transportation. Several of the projects I have undertaken
involved database tuning and optimisation. One that springs to mind
involved a process that provisioned only 7 customers' mobile phones a
second when the work orders were arriving at the rate of 76 per second.
Fortunately, six weeks later we had eliminated the backlog and the
system could comfortably handle all foreseeable demand, which was
considerable.

I have attached my CV, in case you are interested.

Presently I am based in Britain. Communications should not be a problem,
I have a fibre broadband connection as I work from home on the South
Coast, about an hour from Heathrow. Skype works pretty well for me and I
have VoIP available,  so phoning and video conferencing should work from
my end.

i would be most interested to learn further about your project.

Kind Regards

Robin St.Clair

On 15/08/2014 05:19, Mike Dewhirst wrote:

I'm looking for a DBA designer in Melbourne for some paid consulting.

I have a Django 1.6 prototype system working nicely with Postgres 9.1.

But it was designed as a proof-of-concept rather than a production
system. I figured the project wouldn't actually get off the ground
without funding and then I'd be able to hire someone to get serious
about design perfection. In particular, distributed database versus
monolithic and optional integration of external systems by some users
plus parts which are shared among all users.

Well, it didn't work out the way I planned. Funding is still a way off
and now I have people who want to use the prototype.

The consulting task is to determine if the design can be tweaked so it
can be put into production. And if so, to so tweak it.

If I can't find someone in Melbourne I'll consider a remote consultant
but I think the conversation bandwidth required would make remote less
than ideal.

Thanks for any sympathy

Cheers

Mike





--
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/53EE0D0C.5070400%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Efficient way to perform many queries

2014-08-15 Thread 9devmail
I am writing application similar to django-taggit 
 and I was wondering about its 
performance.

Example for list of items:

{% for item in items %}

{{ item.name }}

{% for tag in item.tags.all %}
{{ tag }}
{% endfor %}

{% endfor %}

Above code creates massive amount of separated SQL queries as can be 
observed in Django Toolbar (click on image to enlarge).




Is there any way to make it more efficient? I was thinking about merging 
these queries into one big. Thanks in advance for any tips.

-- 
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/25563cc0-ad0f-45c7-9d96-0326d01b869e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Efficient way to perform many queries

2014-08-15 Thread Collin Anderson
you could try in your view:

items = items.prefetch_related('tags')


-- 
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/0acd3536-93e7-463a-9805-06d1b9236b63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Efficient way to perform many queries

2014-08-15 Thread 9devmail
Thank you.

What if I'm using GenericForeignKey in Tags model? Can I still use it?

-- 
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/b39f083e-27bf-4059-ab4b-5700615fc93d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Efficient way to perform many queries

2014-08-15 Thread Sergiy Khohlov
good question !

1) I like to use some optimization at view side not template
2) if i need something like your code I using optimization.
 Something like that :

{% with items = mymodels.items.all  %}

{% for item in items %}

{{ item.name }}

{% for tag in item.tags.all %}
{{ tag }}
{% endfor %}

{% endfor %}

{% endwith %}

First records means get ALL record to the variable which should be cached
and used sometimes later


3) Anyway  i dont like  "object.all "
I like to retrieve minimum of the field for decreasing database loading

Many thanks,

Serge


+380 636150445
skype: skhohlov


On Fri, Aug 15, 2014 at 5:46 PM, Collin Anderson 
wrote:

> you could try in your view:
>
> items = items.prefetch_related('tags')
>
>
>  --
> 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/0acd3536-93e7-463a-9805-06d1b9236b63%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/CADTRxJPQ%2BRA2eOCw4WuYag238W_nxrEBQngVdUb-TgA7is_Tjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
Hi everyone,
All in the title, My site works perfectly on my windows 7 environnement.
I just dont figure out what the problem is. I do not have any special 
characters in the considered path.
Any idea ?

Thanks

Tracesbacks :
_
C:\Users\\mysite>python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line
399, in execute_from_command_line
utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line
392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
242,
 in run_from_argv
self.execute(*args, **options.__dict__)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
280,
 in execute
translation.activate('en-us')
  File 
"C:\Python27\lib\site-packages\django\utils\translation\__init__.py", lin
e 130, in activate
return _trans.activate(language)
  File 
"C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l
ine 188, in activate
_active.value = translation(language)
  File 
"C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l
ine 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File 
"C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l
ine 159, in _fetch
app = import_module(appname)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, 
in im
port_module
__import__(name)
  File "C:\Python27\lib\site-packages\django\contrib\admin\__init__.py", 
line 6,
 in 
from django.contrib.admin.sites import AdminSite, site
  File "C:\Python27\lib\site-packages\django\contrib\admin\sites.py", line 
4, in
 
from django.contrib.admin.forms import AdminAuthenticationForm
  File "C:\Python27\lib\site-packages\django\contrib\admin\forms.py", line 
6, in
 
from django.contrib.auth.forms import AuthenticationForm
  File "C:\Python27\lib\site-packages\django\contrib\auth\forms.py", line 
17, in
 
from django.contrib.auth.models import User
  File "C:\Python27\lib\site-packages\django\contrib\auth\models.py", line 
48, i
n 
class Permission(models.Model):
  File "C:\Python27\lib\site-packages\django\db\models\base.py", line 96, 
in __n
ew__
new_class.add_to_class('_meta', Options(meta, **kwargs))
  File "C:\Python27\lib\site-packages\django\db\models\base.py", line 264, 
in ad
d_to_class
value.contribute_to_class(cls, name)
  File "C:\Python27\lib\site-packages\django\db\models\options.py", line 
124, in
 contribute_to_class
self.db_table = truncate_name(self.db_table, 
connection.ops.max_name_length(
))
  File "C:\Python27\lib\site-packages\django\db\__init__.py", line 34, in 
__geta
ttr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "C:\Python27\lib\site-packages\django\db\utils.py", line 198, in 
__getite
m__
backend = load_backend(db['ENGINE'])
  File "C:\Python27\lib\site-packages\django\db\utils.py", line 113, in 
load_bac
kend
return import_module('%s.base' % backend_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, 
in im
port_module
__import__(name)
  File 
"C:\Python27\lib\site-packages\django\contrib\gis\db\backends\postgis\bas
e.py", line 4, in 
from django.contrib.gis.db.backends.postgis.introspection import 
PostGISIntr
ospection
  File 
"C:\Python27\lib\site-packages\django\contrib\gis\db\backends\postgis\int
rospection.py", line 2, in 
from django.contrib.gis.gdal import OGRGeomType
  File "C:\Python27\lib\site-packages\django\contrib\gis\gdal\__init__.py", 
line
 41, in 
from django.contrib.gis.gdal.driver import Driver
  File "C:\Python27\lib\site-packages\django\contrib\gis\gdal\driver.py", 
line 5
, in 
from django.contrib.gis.gdal.prototypes import ds as capi
  File 
"C:\Python27\lib\site-packages\django\contrib\gis\gdal\prototypes\ds.py",
 line 8, in 
from django.contrib.gis.gdal.libgdal import lgdal
  File "C:\Python27\lib\site-packages\django\contrib\gis\gdal\libgdal.py", 
line
38, in 
lib_path = find_library(lib_name)
  File "C:\Python27\lib\ctypes\util.py", line 54, in find_library
fname = os.path.join(directory, name)
  File "C:\Python27\lib\ntpath.py", line 108, in join
path += "\\" + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 25: 
ordinal
 not in range(128)
_

-- 
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

Re: Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Collin Anderson
I don't know much about ctypes, but are there any non-ascii characters 
anywhere in your sys.path?

-- 
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/6307bb7d-e41d-443c-9546-49ec476b27b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Designing Model Widgets to Business Analytics app

2014-08-15 Thread Daniel Chimeno
First, Hello all. This is my first post here in django-users, hope I'm 
doing it well.

This question is not django - specific but since I'm using our loved tool, 
I though it could be a good place to post it.

I am developing a business analytics like app, and I have some models like 
this:


class AccountStats(models.Model):
"""
Model to save relevant information about the account.
This data is going to be the relative to the graphs.
"""
account = models.ForeignKey(Account, related_name='stats')

fetch_date = models.DateTimeField(...)
emails_count = models.PositiveIntegerField('...')
friends_count = models.PositiveIntegerField(' ')
favourites_count = models.PositiveIntegerField()
listed_count = models.PositiveIntegerField(''')
writes_count = models.PositiveIntegerField(''')

And the User model provided by Django.

So, now I can  write template files with charts embedded on them. (I'm 
using HighCharts js) doing some
ORM calls, manipulating received data in views and writing the js and html 
in templates.

My next step will be create Widgets models, in order to reuse code.
So for example, create a Widget that will be 'Friends Count', it will be a 
Line Chart and it will call the 
ORM call (pseudo)[SELECT friends_count FROM AccountStats GROUP BY 
fetch_date('Day') ].

While I'm writing this I'm realize that maybe an approach will be write 
several template .html files and then {% include them %}
with the right objects.

So how could I go with it? Any direction, approach or examples to solve 
this?
So many thanks.

PD. Sorry, not native english speaker.





-- 
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/7e58e450-7775-4801-b60e-e9f7c11f326d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
import sys ; print sys.path gives me :

['C:\\Python27\\lib\\site-packages\\pip-1.5.6-py2.7.egg',
'C:\\Python27\\lib\\site-packages\\psutil-2.1.1-py2.7-win32.egg',
'C:\\Windows\\SYSTEM32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages']

Le vendredi 15 août 2014 17:57:50 UTC+2, Collin Anderson a écrit :
>
> I don't know much about ctypes, but are there any non-ascii characters 
> anywhere in your sys.path?
>

-- 
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/7108bdae-25c0-4796-8e56-847b1a63c8de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: dba designer consulting needed

2014-08-15 Thread Robin

Mike

I hope you find a local person who can do the job. If you need to get in 
touch, please do.

Kind Regards

Robin St.Clair
PS I wouldn't mind an excuse to be in Melbourne first week in November
On 15/08/2014 14:37, Mike Dewhirst wrote:

Robin

Thanks for responding ... I have a couple of local people to see and I 
expect to engage one of them. If that doesn't work out may I get back 
in touch with you?


Thanks

Mike

On 15/08/2014 3:21 PM, Robin wrote:

Mike

Firstly, I must say how nice it is to see somebody being concerned to
get the data model correct, it happens less and less frequently, these
days.

Whilst it is important to have a DBA onboard, I must point out that i
have met few DBAs who have the necessary  abstraction skills do do the
design job single handed. Somebody who is used to switching between
logical and physical design, with a view to creating the most efficient
and cost effective design rarely spends much time working as a DBA.

If you were to consider a consultant from outside Melbourne, I would be
interested in offering my services. I have extensive experience in
various industries including Healthcare, Telecoms, Banking, Primary
Industries and Transportation. Several of the projects I have undertaken
involved database tuning and optimisation. One that springs to mind
involved a process that provisioned only 7 customers' mobile phones a
second when the work orders were arriving at the rate of 76 per second.
Fortunately, six weeks later we had eliminated the backlog and the
system could comfortably handle all foreseeable demand, which was
considerable.

I have attached my CV, in case you are interested.

Presently I am based in Britain. Communications should not be a problem,
I have a fibre broadband connection as I work from home on the South
Coast, about an hour from Heathrow. Skype works pretty well for me and I
have VoIP available,  so phoning and video conferencing should work from
my end.

i would be most interested to learn further about your project.

Kind Regards

Robin St.Clair

On 15/08/2014 05:19, Mike Dewhirst wrote:

I'm looking for a DBA designer in Melbourne for some paid consulting.

I have a Django 1.6 prototype system working nicely with Postgres 9.1.

But it was designed as a proof-of-concept rather than a production
system. I figured the project wouldn't actually get off the ground
without funding and then I'd be able to hire someone to get serious
about design perfection. In particular, distributed database versus
monolithic and optional integration of external systems by some users
plus parts which are shared among all users.

Well, it didn't work out the way I planned. Funding is still a way off
and now I have people who want to use the prototype.

The consulting task is to determine if the design can be tweaked so it
can be put into production. And if so, to so tweak it.

If I can't find someone in Melbourne I'll consider a remote consultant
but I think the conversation bandwidth required would make remote less
than ideal.

Thanks for any sympathy

Cheers

Mike







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


Flatpages

2014-08-15 Thread Lee Hinde
I added flatpages to a project and got it working fine locally, using dev
server, but I get a 404 accessing my test page when I push to production.

Googling the issue,  most common complaints fixed by making sure SITE_ID
was set, and that's in place in my site.

I'm not using middleware, I'm using the url:

urlpatterns += patterns('django.contrib.flatpages.views',

(r'^(?P.*/)$', 'flatpage'),

)

I'm not sure how to debug 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/CA%2BePoMx4k-rcotED1wjaXUaeMaahkvuOeVg6VFMpjV7zhC%3DPpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Collin Anderson
What is your page's url? Does it end with a slash?

-- 
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/a0f94321-e701-40c8-b874-f95a3d59d1e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
It's /test/. The flatpages admin form won't accept a url that doesn't begin
and end in a slash.


On Fri, Aug 15, 2014 at 10:55 AM, Collin Anderson 
wrote:

> What is your page's url? Does it end with a slash?
>
> --
>

-- 
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/CA%2BePoMxqM5WCMf_o%2Bv4Ev4T23zcT9eiRnO68hKH8%2BTALRJP0CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread C. Kirby
Is it only occurring on the flatpages test page or all your pages (or is 
that the only page)? Remember you need ALLOWED_HOSTS set in production[1]

[1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts

On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote:
>
> I added flatpages to a project and got it working fine locally, using dev 
> server, but I get a 404 accessing my test page when I push to production.
>
> Googling the issue,  most common complaints fixed by making sure SITE_ID 
> was set, and that's in place in my site.
>
> I'm not using middleware, I'm using the url:
>
> urlpatterns += patterns('django.contrib.flatpages.views',
>
> (r'^(?P.*/)$', 'flatpage'),
>
> )
>
> I'm not sure how to debug 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/740d40ea-f53a-4937-a73d-fad474fff626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
It's the only page; I'll double-check allowed hosts...

Thanks.


On Fri, Aug 15, 2014 at 11:30 AM, C. Kirby  wrote:

> Is it only occurring on the flatpages test page or all your pages (or is
> that the only page)? Remember you need ALLOWED_HOSTS set in production[1]
>
> [1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
>
>
> On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote:
>>
>> I added flatpages to a project and got it working fine locally, using dev
>> server, but I get a 404 accessing my test page when I push to production.
>>
>> Googling the issue,  most common complaints fixed by making sure SITE_ID
>> was set, and that's in place in my site.
>>
>> I'm not using middleware, I'm using the url:
>>
>> urlpatterns += patterns('django.contrib.flatpages.views',
>>
>> (r'^(?P.*/)$', 'flatpage'),
>>
>> )
>>
>> I'm not sure how to debug 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/CA%2BePoMz%3DaXn5wWkQYnzqGH1YTSowNSJj%3Dwco57VTc5txOitiZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, ALLOWED_HOSTS is set. This site has been in production since late
March, so it's otherwise a going concern. (1.6.x, which I didn't mention
earlier).


On Fri, Aug 15, 2014 at 11:37 AM, Lee Hinde  wrote:

> It's the only page; I'll double-check allowed hosts...
>
> Thanks.
>
>
> On Fri, Aug 15, 2014 at 11:30 AM, C. Kirby  wrote:
>
>> Is it only occurring on the flatpages test page or all your pages (or is
>> that the only page)? Remember you need ALLOWED_HOSTS set in production[1]
>>
>> [1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
>>
>>
>> On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote:
>>>
>>> I added flatpages to a project and got it working fine locally, using
>>> dev server, but I get a 404 accessing my test page when I push to
>>> production.
>>>
>>> Googling the issue,  most common complaints fixed by making sure SITE_ID
>>> was set, and that's in place in my site.
>>>
>>> I'm not using middleware, I'm using the url:
>>>
>>> urlpatterns += patterns('django.contrib.flatpages.views',
>>>
>>> (r'^(?P.*/)$', 'flatpage'),
>>>
>>> )
>>>
>>> I'm not sure how to debug 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/CA%2BePoMwyZMxmKuAwtOtkZ%3DHjB_s5MsMhaHFEYChiGKg6xFxU1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Collin Anderson
I also assume you added the page to the production database and not just 
your dev database (if they're different)?

-- 
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/b3aecbf7-9dca-44b7-88e9-49ef80f2fb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, it's a record in the flatpages table on the production side.


On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson 
wrote:

> I also assume you added the page to the production database and not just
> your dev database (if they're different)?
>
> --
> 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/b3aecbf7-9dca-44b7-88e9-49ef80f2fb94%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/CA%2BePoMxz0OQcPFw4tt7Z4NUO-pcfKbmo4V78Lx76CVsVYCSf9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread C. Kirby
There is a warning about APPEND_SLASH = False in the flatpages 
documentation:

Warning

If you set APPEND_SLASH 
 
to False, you must remove the slash in the catchall pattern or flatpages 
without a trailing slash will not be matched. 
Could it be that?

On Friday, August 15, 2014 1:58:49 PM UTC-5, Lee Hinde wrote:
>
> Yes, it's a record in the flatpages table on the production side.
>
>
> On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson  > wrote:
>
>> I also assume you added the page to the production database and not just 
>> your dev database (if they're different)?
>>  
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/b3aecbf7-9dca-44b7-88e9-49ef80f2fb94%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/4ebd79c2-202f-481e-aa3c-a3e9428af621%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
I don't have APPEND_SLASH in my settings and the default is True, so I
don't think that's it.

Also, I used the django extension show_urls and the flatpages url showed up
in the output, so I think it's in the chain.


On Fri, Aug 15, 2014 at 12:19 PM, C. Kirby  wrote:

> There is a warning about APPEND_SLASH = False in the flatpages
> documentation:
>
> Warning
>
> If you set APPEND_SLASH
> 
> to False, you must remove the slash in the catchall pattern or flatpages
> without a trailing slash will not be matched.
> Could it be that?
>
>
> On Friday, August 15, 2014 1:58:49 PM UTC-5, Lee Hinde wrote:
>
>> Yes, it's a record in the flatpages table on the production side.
>>
>>
>> On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson 
>> wrote:
>>
>>> I also assume you added the page to the production database and not just
>>> your dev database (if they're different)?
>>>
>>>
>

-- 
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/CA%2BePoMyFy8cMin5PU6oBjMj7jxfTgiyMbYS1_FqTNPprPYZgjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Collin Anderson
SITE_ID is set, but is the correct site selected on the flatpage?

-- 
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/CAFO84S59t2HVJ0QNTHVn0w-cWq-hPg8QmVaJxd31rqTcR1gk5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes.


On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson 
wrote:

> SITE_ID is set, but is the correct site selected on the flatpage?
>
>

-- 
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/CA%2BePoMyQ8qR1Cx4M8cdLmN-A%3DKkz4WY4xYg1Lv9eWGb4%2B391QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Flatpages

2014-08-15 Thread Lee Hinde
I just logged into the backend to make sure the django_flatpage_sites table
was populated and it is.


On Fri, Aug 15, 2014 at 2:21 PM, Lee Hinde  wrote:

> Yes.
>
>
> On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson 
> wrote:
>
>> SITE_ID is set, but is the correct site selected on the flatpage?
>>
>>

-- 
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/CA%2BePoMzbRnrmOu6bFM3OHcvkkXdbS78C1T8dzvnnDw9__KDHCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Extened User and have fieldsets instead of inlines

2014-08-15 Thread Elliot
Thanks Andrea,

I was more looking to see if anyone had used fieldsets instead of inlines. 
I imagine it would be quite possible with rewriting the view that serves up 
the change form for user. It just seems that the fieldset gets rendered 
because of the associated form but then isn't actually related to the 
model. Hence the empty fields and not saving the values. 

-- 
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/f15e6201-c7bf-4972-b180-503467886898%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.