Re: auto_created getting ignored by makemigrations

2015-08-05 Thread Markus Holtermann
Hey Joey, not settings `auto_created=True` should do. /Markus On Thursday, August 6, 2015 at 1:17:09 PM UTC+10, JoeLinux wrote: > > Dear Anyone, > > I'm having an issue with a ManyToMany "through" table not being recognized > by the makemigrations command. Please consider the model definitions

auto_created getting ignored by makemigrations

2015-08-05 Thread Joey Espinosa
Dear Anyone, I'm having an issue with a ManyToMany "through" table not being recognized by the makemigrations command. Please consider the model definitions at the following pastebin: http://pastebin.ubuntu.com/12011412/ So, I have a Player model. Players are stored and updated in that model

Re: Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
Nevermind.. You provided the grain of truth I needed and I think it's working now.. added required=false to the constructor call.. after seeing what was in the fields collection with the debugger. Thanks On Wednesday, August 5, 2015 at 4:38:36 PM UTC-5, James Bennett wrote: > > Have

Re: Using django as a socket server and not HTTP server

2015-08-05 Thread Carlos Andre
have a framework to work like this, twistter 2015-08-05 14:03 GMT-03:00 Javier Guerra Giraldez : > On Wed, Aug 5, 2015 at 10:14 AM, Idan Shimon wrote: > > Hi i am interested to setup my own socket protocol against a peripheral > > device > > The socket

Re: Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
I've not and I'm not sure how or where to do that. On Wednesday, August 5, 2015 at 4:38:36 PM UTC-5, James Bennett wrote: > > Have you tried setting "required=False" in your custom field override? > > On Wed, Aug 5, 2015 at 3:23 PM, Scott Gibson > wrote: > >> The django admin

Re: Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread James Bennett
Have you tried setting "required=False" in your custom field override? On Wed, Aug 5, 2015 at 3:23 PM, Scott Gibson wrote: > The django admin app is requiring a foreign key to be populated even > though the model is defined and migrated with null=true and blank=true. > >

Check out what we've build

2015-08-05 Thread tomcooper845
Hey, guys Our team is using Django for our projects. And each time finishing the projects we've had a pain with configuring backups (files and DBs) for our customer's VPS. While solving this problem, we've built the BitCalm.com service. Please check it out and

Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
The django admin app is requiring a foreign key to be populated even though the model is defined and migrated with null=true and blank=true. What I've found is that the admin app will treat the field as required if the associated AdminForm(forms.ModelForm) overrides the fields collection for

Re: Django SECRET_KEY : Copying hashed passwords into different Django project

2015-08-05 Thread Tim Graham
By the way, the docs for SECRET_KEY have a description of what will be invalidated if you change it: https://docs.djangoproject.com/en/stable/ref/settings/#secret-key On Wednesday, August 5, 2015 at 11:16:21 AM UTC-4, Simon Charette wrote: > > Hi Angit, > > It shouldn't be an issue since

Re: Django Grids - Display grids/tables

2015-08-05 Thread ADEWALE ADISA
With div element and CSS, you can create awesome grid. Better still use bootstrap. Just return your data from django, then iterate over them and display them. You can use django template or if u are not comfortable with template, return your data as json, collect with ajax, use js to iterate and

Re: Using django as a socket server and not HTTP server

2015-08-05 Thread Javier Guerra Giraldez
On Wed, Aug 5, 2015 at 10:14 AM, Idan Shimon wrote: > Hi i am interested to setup my own socket protocol against a peripheral > device > The socket server would be online and exposed to the web, however it will > not work on http. not as it is currently. the issue is that

Using django as a socket server and not HTTP server

2015-08-05 Thread Idan Shimon
Hi i am interested to setup my own socket protocol against a peripheral device The socket server would be online and exposed to the web, however it will not work on http. Can i use django / nginx to manage the socket sessions ? while i focus on functionality ? Can someone redirect me to a

Re: Django SECRET_KEY : Copying hashed passwords into different Django project

2015-08-05 Thread Simon Charette
Hi Angit, It shouldn't be an issue since Django's default password hashers are not relying on settings.SECRET_KEY. Simon Le mercredi 5 août 2015 05:12:47 UTC-4, Ankit Agrawal a écrit : > > > > Hi everyone, > > > I have a Django powered site(Project-1) running with some users >

Re: Django Grids - Display grids/tables

2015-08-05 Thread C. Kirby
Nothing django specific - just use an html table. That is what they are made for, tabular data. On Wednesday, August 5, 2015 at 8:22:21 AM UTC-5, Sayth Renshaw wrote: > > Hi > > Wanting some advice on which packages you use with django to display your > data to your users in grids, so think

custom permission strings: Avoid magic strings ...

2015-08-05 Thread guettli
Hi, We define the permission like in the docs: https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#custom-permissions To avoid the magic string 'fooapp.fooperm' in the code which uses the permission very often, I choose this solution: {{{ # file models.py class FooModel(Model):

Re: django "plain managers"

2015-08-05 Thread 'Tom Evans' via Django users
On Wed, Aug 5, 2015 at 1:03 PM, varun naganathan wrote: > what does django mean exacty by "plain manager"??? A models.Manager() instance that is added by default to your models.Model class if you do not explicitly specify a "non plain" manager.

Django Grids - Display grids/tables

2015-08-05 Thread Sayth Renshaw
Hi Wanting some advice on which packages you use with django to display your data to your users in grids, so think sports data 17 rows 10 columns x2 for both teams. Looking in the packages here https://www.djangopackages.com/grids/ . What advice can you give me if you have done something

django "plain managers"

2015-08-05 Thread varun naganathan
what does django mean exacty by "plain manager"??? -- 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

Re: Upload new file to the uploaded file path

2015-08-05 Thread 'Tom Evans' via Django users
On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery wrote: > I have a model for Video: > > class Video(models.Model): > title = models.CharField(max_length=75) > pubdate = models.DateTimeField(default=timezone.now) > original_video =

Re: Passing parameters / attributes to javascript in a template

2015-08-05 Thread Déborah Leder
Thank you for your answers, everyone. Alex, indeed I didn't know about the forloop last trick. It worked like a charm ! And Daniel, for some reasons I prefer not to mess with the views for now, but when if I need to clean up my code, I keep your answer in mind. -- You received this message

Re: Accessing a field's verbose_name

2015-08-05 Thread Déborah Leder
I read the django documentation, and I realised that both commands ( self. __class__()._meta.get_field('{0}'.format(field_name)) and self._meta. get_field(field_name) ) did return the right object, the problem was when I tried to access the verbose_name. And after testing some more, I understood

Django SECRET_KEY : Copying hashed passwords into different Django project

2015-08-05 Thread Ankit Agrawal
Hi everyone, I have a Django powered site(Project-1) running with some users registered on it. I am now creating a revamped version of the site in a new separate Django project(Project-2) which I would make live once finished. I would need to populate the User data along with their