django bulk sms

2014-11-06 Thread ngangsia akumbo
i have a mmodels like this from django.db import models # Create your models here. class Text(models.Model): name = models.CharField(max_length=100, unique=True) number = models.IntegerField(default=0) def __unicode__(self): return self.name i wish to connect this with kann

Re: Send message to SMS Gateway

2014-11-06 Thread ngangsia akumbo
There are free gateways like kannel and vumi On Sunday, June 24, 2012 11:37:21 AM UTC+1, Andreas wrote: > > Have a look at a Bulk SMS Gatway from txtNation - SMS Gateway. > See the SMPP API on-line at: > http://wiki.txtnation.com/wiki/SMPP_Bulk > > and their info on http://gateway.txtnation.com >

Beginner needs help with models.py for a Survey like Website

2014-11-06 Thread Tobias Dacoir
Hi all, I need to create some kind of survey for my studies but I'm struggling with the models.py. I did read some tutorial on Django and I like it very much, but I'm no expert when it comes to database modellling. Here is my proposed models.py: class User(models.Model): SEX = (

Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
Hello, I'm working in a project where I use DionaeaFR to visualize my data collected by Dionaea and the tutorial I followed uses Django Framework. Later I go and try to access the DionaeaFR graphs through my web browser, H

Re: Newbie operational error with Django db tables

2014-11-06 Thread Avraham Serour
it looks like django is trying to access a table named downloads which doesn't seems to exists in the db On Thu, Nov 6, 2014 at 8:54 AM, Mr. crazy wrote: > Hello, > > I'm working in a project where I use DionaeaFR to visualize my data > collected by Dionaea and the tutorial >

Re: How to restrict a class based view to one user group?

2014-11-06 Thread Bruno Barcarol Guimarães
Hi Daniel. You're looking for the `user_passes_test` decorator: https://docs.djangoproject.com/en/1.7/topics/auth/default/#limiting-access-to-logged-in-users-that-pass-a-test Remember you need to decorate the `dispatch` method of a CBV. -- You received this message because you are subscribed t

Re: How to restrict a class based view to one user group?

2014-11-06 Thread Daniel Grace
I solved this using a "method_decorator" and "user_passes_test". -- 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 po

Re: Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
well, That is totally true.This is the problem which I need to find it's solution. Do I have to make the table?? How? I looked for the DB tables and I didn't find it-Maybe I did not searched the correct place I need help On Thursday, November 6, 2014 9:04:05 PM UTC+8, Avraham Serour wrote:

Re: How to restrict a class based view to one user group?

2014-11-06 Thread Daniel Grace
Thanks Bruno, I was decorating the 'post' method. I've got it right now. -- 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.c

Dango signal can't delete directory

2014-11-06 Thread Stodge
I have a separate daemon running as root that generates cached image tiles per user for a map. For now it creates them under /tmp/tile_cache. When it creates a new tile cache it changes the UID and GID to the apache user (on Fedora) and also gives everyone access to the directory, e.g. permissio

Forms / pages and CSS like Django admin

2014-11-06 Thread Daniel Grace
Hi, OK, I know how to import CSS into a template. I would like to get forms / pages that look like those on Django admin site. What is a good strategy to achieve this? Copy the CSS? Looking at "inspect element" in Google Chrome I see that the styling on the forms in the Django admin site do n

Re: Dango signal can't delete directory

2014-11-06 Thread Tom Evans
On Thu, Nov 6, 2014 at 3:08 PM, Stodge wrote: > I have a separate daemon running as root that generates cached image tiles > per user for a map. For now it creates them under /tmp/tile_cache. When it > creates a new tile cache it changes the UID and GID to the apache user (on > Fedora) and also gi

Re: Dango signal can't delete directory

2014-11-06 Thread Tom Evans
On Thu, Nov 6, 2014 at 3:54 PM, Tom Evans wrote: > On Thu, Nov 6, 2014 at 3:08 PM, Stodge wrote: >> I have a separate daemon running as root that generates cached image tiles >> per user for a map. For now it creates them under /tmp/tile_cache. When it >> creates a new tile cache it changes the U

Re: Dango signal can't delete directory

2014-11-06 Thread Bruno Barcarol Guimarães
> os.path.exists fails to see the directory as well. This is strange. Are you sure you are referencing the right directory (it happens...)? The only other reason I can think of is your program or apache (or both) running with mount namepsace on /tmp. That said: > When it creates a new tile cach

Re: Dango signal can't delete directory

2014-11-06 Thread Stodge
I'll see if the python code under Apache can stat /tmp. Thanks. On Thursday, 6 November 2014 10:56:39 UTC-5, Tom Evans wrote: > > On Thu, Nov 6, 2014 at 3:54 PM, Tom Evans > wrote: > > On Thu, Nov 6, 2014 at 3:08 PM, Stodge > > wrote: > >> I have a separate daemon running as root that generate

Re: Dango signal can't delete directory

2014-11-06 Thread Stodge
I'm debug printing the directory I'm trying to delete, so I'm sure it's correct. But you raise a valid point! I also change permissions and ownership of /tmp/tile_cache. Thanks. On Thursday, 6 November 2014 10:59:35 UTC-5, Bruno Barcarol Guimarães wrote: > > > os.path.exists fails to see the di

Re: running unit tests with legacy database: Error 1050, Table already exists

2014-11-06 Thread David Palao
Hi Collin, Thanks a lot for the answer. I think you are right, and that was what I was doing. Still, apparently the models could not be created properly, or whatever. However I think I managed to convert this problem to a different one (not sure if I should start a new thread). What I did was: rem

Re: Dango signal can't delete directory

2014-11-06 Thread Stodge
I added: try: > mode = os.stat(path).st_mode > print(str(S_ISDIR(mode))) > except Exception, e: > print("Error stating tile cache %s" % str(e)) Which gives: Error stating tile cache [Errno 2] No such file or directory: > '/tmp/tile_cache/mike' But ls -al /tmp

Re: Dango signal can't delete directory

2014-11-06 Thread Stodge
Tom, you might be right about the sticky bit. If I store the tile cache elsewhere, the signal can successfully delete it. On Thursday, 6 November 2014 10:55:03 UTC-5, Tom Evans wrote: > > On Thu, Nov 6, 2014 at 3:08 PM, Stodge > > wrote: > > I have a separate daemon running as root that generat

connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
Hi All, I am trying use postgres with Django for the first time. I successfully downloaded psycopg2 through this site: http://www.stickpeople.com/projects/python/win-psycopg/ It is in my main site-libraries. However, when I try to run the same command in my virtual environment (when the vi

Django Instant Messenger Package needed

2014-11-06 Thread PublicT
Hello All, Can anyone point me to a site or repository where I can find a well written Package for IM - Instant Messenger. Working on a project that desperately need one. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Newbie operational error with Django db tables

2014-11-06 Thread donarb
On Thursday, November 6, 2014 6:31:08 AM UTC-8, Mr. crazy wrote: > well, > > That is totally true.This is the problem which I need to find it's > solution. > Do I have to make the table?? How? > I looked for the DB tables and I didn't find it-Maybe I did not searched > the correct place > > I

Re: Newbie operational error with Django db tables

2014-11-06 Thread Adailton Nascimento
Mr.crazy whenever you add content to the model or form run syncdb will have to be added to the database. or delete your database, and run: python manage.py syncdb -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Django Instant Messenger Package needed

2014-11-06 Thread Andreas Kuhne
2014-11-06 17:47 GMT+01:00 PublicT : > Hello All, > Can anyone point me to a site or repository where I can find a well > written Package for IM - Instant Messenger. Working on a project that > desperately need one. > > Thanks > > -- > You received this message because you are subscribed to the G

Re: connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
In case anyone comes across this same issue. What I did was to navigate to the Scripts folder in the virtual environment where I want it. Then, I ran this command: (virtualenvironment) C:\(path to environment where I want psycopg2)\Scripts>python easy_install.exe c:\psycop g2-2.5.4.win-amd

Aw: Re: Beginner: ManyToManyFields error creating the model / adding values by the Admin Module or the Shell

2014-11-06 Thread lnzy35en
  Hey Erik,   you are total right. the __str__ method was chausing the error! Thank you so much! Now I can try to make progress!   I very much appreached your help! Best Regards, Mike   Gesendet: Mittwoch, 05. November 2014 um 11:06 Uhr Von: "Erik Cederstrand" An: "Django Users" Betref

Re: Django Instant Messenger Package needed

2014-11-06 Thread Cal Leeming [iops.io]
Depends on what you are trying to do but, you might want to consider a third party product for this; http://www.iron.io/mq Building your own instant messenger system properly is hard, if you can do this directly on the client (via web sockets, HTTP push/pull, flash stream with JS IPC etc) then you

Using a foreign key id value triggers `refer_to_missing_field` error on migrate

2014-11-06 Thread Peter Coles
I had an inline AdminModel that I was ordering by the id of a foreign key value, e.g., class ThingAdmin(admin.TabularInline): model = models.Thing ordering = ('rel_id',) Where "rel_id" references the actual db column vs the object "rel". This worked like a charm in the admin interface,

Re: Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
well, as I asid in my question I'm following at tutorial on the installation steps of my visualization tool, it does not sat anything about tables creation I have also checked the tool in github but I can't see anything there. and if I want to build t

Re: Forms / pages and CSS like Django admin

2014-11-06 Thread Aliane Abdelouahab
here? https://docs.djangoproject.com/en/dev/topics/forms/media/ If you like the widgets that the Django Admin application uses, feel free to use them in your own application! They’re all stored in django.contrib.admin.widgets. Le jeudi 6 novembre 2014 16:51:29 UTC+1, Daniel Grace a écrit : > >