Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread James Schneider
On Wed, Aug 23, 2017 at 4:40 PM, Alexander Joseph < alexander.v.jos...@gmail.com> wrote: > One more question - is there a way to put apps in folders/sub-folders > instead of creating sub-apps/modules? I just want to keep things easier to > navigate on the development side. I will eventually have

Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread Alexander Joseph
One more question - is there a way to put apps in folders/sub-folders instead of creating sub-apps/modules? I just want to keep things easier to navigate on the development side. I will eventually have about 20 sub-apps in the 'Engineering' app alone. Even if I could just group all the

Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread Alexander Joseph
Thanks James, and thanks for your post on my other thread about structure. I agree I need to get more into conceptual introductory material. I think I will restructure my project and merge a lot of the apps/subapps I have now as you suggested. From what Tom said it sounds like that could be a lot

Re: Retrieving objects created in trasaction

2017-08-23 Thread James Schneider
On Aug 16, 2017 11:27 AM, "roboslone -" wrote: Hi, I have some function (fetcher) that runs in transaction (it has to) and it creates a bunch if new objects that are written to database after transaction is commited. Those objects are added to a many-to-many relation. And

Re: include template in a page

2017-08-23 Thread pieceofkayk2718
Do you have an action on your register form? Like -- 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: Retrieving objects created in trasaction

2017-08-23 Thread pieceofkayk2718
Try foo.save() before foo.bars.add(). > > -- 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,

Re: Use separate apps or only one app in my project

2017-08-23 Thread pieceofkayk2718
Can you give a more concrete example? -- 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

Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread 'Tom Evans' via Django users
On Tue, Aug 22, 2017 at 8:37 PM, Alexander Joseph wrote: > Thanks for all the advice. > > One more question - could project structure be causing issues with > migrations? I'm working on a large project and many apps in my project have > several layers of "sub-apps".

ManyToManyField's add() function is doing nada for me.

2017-08-23 Thread pieceofkayk2718
I am simply trying to add a Bundle model to my Instrument model. It should be really easy but I can't seem to figure out why it's not working. context.models.py class Instrument(models.Model): title = models.CharField(max_length=200) bundle = models.ManyToManyField(Bundle, blank=True)

Re: Need help: webrtc signalling with django app

2017-08-23 Thread Andrew Godwin
My impression was that RTC signalling was not specified or defined so apps could do it how they wish - so you could use normal AJAX, or WebSockets, etc. Channels doesn't have RTC support as, as far as I could tell, the specified parts are all browser-to-browser. Andrew On Wed, Aug 23, 2017 at

Need help: webrtc signalling with django app

2017-08-23 Thread OM555
Hi all, Is there any way of integrating webrtc signaling with django apps? From what I understand django channels do not support this. I need user authentication from django app to be used along with the webrtc feature. Thanks... OM -- You received this message because you are subscribed to

Re: is there any way to dump all sqlmigrations automatically ?

2017-08-23 Thread Daniel Hepper
You can try this command: python manage.py showmigrations -p | sed -e 's/\[ ] \(.*\)\.\(.*\)/\1 \2/' | xargs -L1 python manage.py sqlmigrate Here is what it does: 1. "python manage.py showmigrations -p" shows all migrations in the order they will be applied as a list with checkboxes. 2.

Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread Antonis Christofides
Hi, > I read in "2 Scoops of Django" that, in general, if you have more than 5 > models per model file then you should think about splitting the model up into > different apps, rather than having long models files. I don't claim to be more experienced than the authors—on the contrary—and I have

Re: Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-23 Thread Antonis Christofides
Hi, Shameless plug: http://djangodeployment.com/ is the best :-) However it doesn't treat mod_wsgi. I have explained that when deploying on Unix/Linux, there is no reason to prefer it over Gunicorn (and Apache+Gunicorn is

Django - Image crop using a widget as a field in the form

2017-08-23 Thread Paul
I have a Product Model and Image Model with a Foreign key to the product model. So in a form for Product creation I will have/need multiple Image File Upload inputs. I want to replace the default Image file-upload form field with a Image (like a plus sign, like add a new image, using a