NAS using Django

2016-03-09 Thread Vayuj Rajan
Hi, I have a query whether we can implement NAS (network attached storage) functionality using Django framework? -- 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

Migrations bork: relation "django_site" does not exist

2016-03-09 Thread Malte
Hi all, I ran into this error trying to migrate my apps with a blank Postgres database. django.db.utils.ProgrammingError: relation "django_site" does not exist LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si... The issue was raised by others (e.g. on SOF http://stackov

addField ForeignKey during migrations create unusable constraint name

2016-03-09 Thread Gromish
Env: Django 1.8.11 + Postgis I'm adding some ForeignKeys on a MyModel. The models pointed are in another schema ("cartography"). makemigrations no errors migrate One error. Can't create the constraint because the generated name. But I'm adding 10 fields, really similar between them. Only o

Re: Python on the web

2016-03-09 Thread Vikramjeet Raj
Yes, Please let me know what you need to get done. On Monday, 7 March 2016 21:21:53 UTC+5:30, Gregg Turner wrote: > > Hey, > > Need a simple python script put into a website. It uses the requests > module. > > $20? Any takers? > -- You received this message because you are subscribed to the Go

Re: NAS using Django

2016-03-09 Thread Andreas Kuhne
Hi Vayuj, I think you have to be a bit more specific. Django is a web framework, used for creating web applications and websites. A NAS is usually an array of harddrives that has different file sharing protocols attached (for example SMB or NFS). It would be possible to implement something like A

Re: Migrations bork: relation "django_site" does not exist

2016-03-09 Thread Michal Petrucha
On Tue, Mar 08, 2016 at 08:08:06PM -0800, Malte wrote: > Hi all, > > I ran into this error trying to migrate my apps with a blank Postgres > database. > > django.db.utils.ProgrammingError: relation "django_site" does not exist > > LINE 1: ..."django_site"."domain", "django_site"."name" FROM "dj

Re: NAS using Django

2016-03-09 Thread Vayuj Rajan
What I wanted to do is to connect the file sharing protocols to this web application i.e the one I will be making it from Django and I wanted to host this application using apache so that it can be hosted locally. On Wednesday, March 9, 2016 at 6:05:51 PM UTC+5:30, Andréas Kühne wrote: > > Hi Va

Problems with same page scroll plugin in django-cms

2016-03-09 Thread dev . fekioh
Hi all, I have a problem using the cmsplugin-sections plugin for same page navigation I am trying to use it and I run into a *'NoneType' object is not iterable error* when trying to add a section container. Full information here

execute python through ajax

2016-03-09 Thread Florian Hoedt
Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like this? I am trying to understand the forms section o

Re: execute code at startup

2016-03-09 Thread Vernon D. Cole
I think if I were doing this, I would write a custom management command to update the tables, and run it at system startup time. Management commands are easy to debug and well documented. On Tuesday, March 8, 2016 at 10:3

Re: execute python through ajax

2016-03-09 Thread Bob Gailer
On Mar 9, 2016 9:22 AM, "Florian Hoedt" wrote: > > Hello Django users, > I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. > How would I achieve something lik

Re: NAS using Django

2016-03-09 Thread Aaron C. de Bruyn
That's still pretty vague. What 'file sharing protocols' are you talking about specifically? And what do you mean by wanting to 'connect' the file sharing protocols to the application? There is a PySMB library that will allow your Django application to pretend to be a Windows client. If you're

Re: addField ForeignKey during migrations create unusable constraint name

2016-03-09 Thread Simon Charette
Hi Gromish, >From looking at you models `db_table` options it looks like you are using a work around to use a table defined in a non default schema (cartography). Django doesn't officially support custom schema yet[1] but there's an ongoing effort to get basic support merged in Django 1.10[2] th

Re: Python on the web

2016-03-09 Thread Mario R. Osorio
There you are: http://hlevkin.com/Shell_progr/hellopython.htm Please send the $20 to my paypal account... On Monday, March 7, 2016 at 10:51:53 AM UTC-5, Gregg Turner wrote: > > Hey, > > Need a simple python script put into a website. It uses the requests > module. > > $20? Any takers? > -- Yo

Problem with create new instance

2016-03-09 Thread Dariusz Mysior
I have Django 1.8 Python 3.4 My app contact. I have model and form like below and when I run command > from contact.forms import MessageForm > and next > form = MessageForm() > I have error In[2]: from contact.forms import MessageForm >> In[3]: form = MessageForm() >> Traceback (most re

Re: Problem with create new instance

2016-03-09 Thread Dariusz Mysior
I found that when I write import django and next django.setup() to terminal than it works. But next question, when I put it to automaticly run it... W dniu środa, 9 marca 2016 18:48:15 UTC+1 użytkownik Dariusz Mysior napisał: > > I have Django 1.8 Python 3.4 > > My app contact. I have model and

Re: Problem with create new instance

2016-03-09 Thread Dariusz Mysior
Ok I have it. I put it to starting scripts W dniu środa, 9 marca 2016 18:48:15 UTC+1 użytkownik Dariusz Mysior napisał: > > I have Django 1.8 Python 3.4 > > My app contact. I have model and form like below and when I run command > > > >> from contact.forms import MessageForm >> > and next >

Re: Problem with create new instance

2016-03-09 Thread knbk
Any reason you're not using `manage.py shell`? It automatically loads the Django environment, and supports IPython. On Wednesday, March 9, 2016 at 7:35:45 PM UTC+1, Dariusz Mysior wrote: > > Ok I have it. I put it to starting scripts > > W dniu środa, 9 marca 2016 18:48:15 UTC+1 użytkownik Dariu

django button function vs aesthetic

2016-03-09 Thread clarksonchris81
The following is derived from an old post but I can not seem to get the button to render in the way that I want it to. Any help? I am trying implement bootstrap on an upload button that is on the webpage. class DocumentForm(forms.Form): docfile = forms.FileField(label='Select file')

Re: [Django-admin] Popup for inline model

2016-03-09 Thread Trevor Cox
Did you ever find a way to do this? I am working on doing exactly that now... On Sunday, 6 July 2014 02:09:25 UTC-4, ebuild wrote: > > In the inline models when using TabularInline, is it possible to use a > popup to add/edit an item when we have a number of fields that can't hold > in the pag

partial database restoration

2016-03-09 Thread Mike Dewhirst
I have a Django project oriented around lots of companies and each company enters its own data. I need to produce a separate individual database backup or dump for each company. It will be used on request to perform an individual restoration after user error has damaged a company's data. I p

Django tests on postgresql with fixtures

2016-03-09 Thread Dheerendra Rathor
According to django testing docs - database is flushed after each TestCase. It is working fine when I'm using sqlite for testing. But database is not flushed when using postgresql and testcases are failing since it is trying to load fixtures which have been loaded in previous TestCase. Is ther

Re: partial database restoration

2016-03-09 Thread Bill Freeman
The only problem I can think of with a DB script is that it may have to be recoded at unpleasant times, such as when you run a migration to take a new version with a security fix. If you are going to do it in Django, it would be by saving stuff out to a fixture, maybe with a custom management comm

Re: RegExp problems

2016-03-09 Thread jorrit787
Your improvements work great, thank you. And thank you for the very detailed explanations! On Tuesday, March 8, 2016 at 9:41:11 AM UTC+1, Michal Petrucha wrote: > > On Mon, Mar 07, 2016 at 05:44:08PM -0800, jorr...@gmail.com > wrote: > > I'm trying to replace *[URL]www.link.com[/URL]* with HTM

pgbouncer transaction mode safe with django orm?

2016-03-09 Thread g
Assuming one uses the ORM and avoids raw sql, is it safe to use PgBouncer in transaction mode? -- 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+unsu

Re: partial database restoration

2016-03-09 Thread Mike Dewhirst
On 10/03/2016 11:15 AM, Bill Freeman wrote: The only problem I can think of with a DB script is that it may have to be recoded at unpleasant times, such as when you run a migration to take a new version with a security fix. If you are going to do it in Django, it would be by saving stuff out to

Re: execute python through ajax

2016-03-09 Thread Jani Tiainen
On 09.03.2016 15:55, Florian Hoedt wrote: Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like this?

Re: NAS using Django

2016-03-09 Thread Vayuj Rajan
Actually, I saw a NAS at my friends place so I came up with an idea a of creating my own using a raspberry pi and an extrernal HDD. I configured SAMBA and I can access it directly at my computer. But what I saw there that he was accessing it by using a website . So basically he was accessing it fr