Re: Need some advice on how to go about building a real time web app.

2015-01-15 Thread Shazwi Suwandi
ent framework). > * As you mentioned, you don't need to use Angular with SwampDragon. > * It's another layer of complexity. > * The blog post I linked to pretty much covers the basis for doing real > time notifications, and isn't using Angular, so you could more or less just

Re: How to check if user is already in user database?

2015-01-16 Thread Shazwi Suwandi
Have you tried something like *user = User.objects.get(username="username")* On Saturday, 17 January 2015 00:00:32 UTC+8, joulumaa wrote: > > Hi, > > If user = auth.authenticate(username,password) results None, I would like > to create new user and login it. > But I cannot find a way to dete

Why do the IDs in many to many join tables change when there is no change.

2015-01-19 Thread Shazwi Suwandi
I'm using Swampdragon to provide real time updates to the system since I don't want users to keep refreshing their page to get them. I used the *ModelPublisherRouter* which causes me to get any updates to a particular model. I currently have an Events model with the following attributes: class

Im having trouble with models when it involves more than 1 class.

2014-11-15 Thread Shazwi Suwandi
Hi group, This is my first time asking, so bear with me if I'm missing anything. I have an app in my project called *Users*, under *Users* currently I have classes - *Customer, Location, ContactNumber. *I added foreign keys in both *Location *and *ContactNumber* to point to *Customer.* Everyt

Re: Im having trouble with models when it involves more than 1 class.

2014-11-17 Thread Shazwi Suwandi
f to use __unicode__ instead of > __str__ > > On Sat, Nov 15, 2014 at 7:55 AM, Shazwi Suwandi > wrote: > >> Hi group, >> >> This is my first time asking, so bear with me if I'm missing anything. I >> have an app in my project called *Users*, under *User

Re: how to learn django and I don't kill in the attempt,

2014-12-14 Thread Shazwi Suwandi
+1 to what Jorge mentioned. You can find books online but most of them (the ones I found) cover up till Django 1.6 and if you wanna use Django 1.7, some things won't apply. For example, things like South is already integrated into Django 1.7. All the best :) On Monday, 15 December 2014 05:49:5

Models not appearing in db. Am I missing something?

2014-12-14 Thread Shazwi Suwandi
from django.db import models from django.contrib.auth.models import User # CORE APPLICATION # Create your models here. class Member(models.Model): user = models.OneToOneField(User) description = models.CharField(max_length=250) date_of_birth = models.DateField() location = models.C

Re: Models not appearing in db. Am I missing something?

2014-12-14 Thread Shazwi Suwandi
I've added 'core' to settings.py file under INSTALLED_APPS too. On Monday, 15 December 2014 15:10:12 UTC+8, Shazwi Suwandi wrote: > > from django.db import models > from django.contrib.auth.models import User > > # CORE APPLICATION > # Create your models

Re: Models not appearing in db. Am I missing something?

2014-12-15 Thread Shazwi Suwandi
roblem from the failures you should get. > Best, > > David > > 2014-12-15 8:15 GMT+01:00 Shazwi Suwandi >: > > > I've added 'core' to settings.py file under INSTALLED_APPS too. > > > > > > On Monday, 15 December

Re: how to learn django and I don't kill in the attempt,

2014-12-15 Thread Shazwi Suwandi
My bad! Apologies.. Thanks for the clarification :) On Monday, 15 December 2014 17:06:44 UTC+8, Russell Keith-Magee wrote: > > > > On Mon, Dec 15, 2014 at 2:57 PM, Shazwi Suwandi > wrote: > >> +1 to what Jorge mentioned. You can find books online but most of them >&g

Re: Models not appearing in db. Am I missing something?

2014-12-15 Thread Shazwi Suwandi
apps in settings > this should totally work. The default name for the table will be > appname_modelname. Do you get an error when accessing the model? How are > you checking the db for tables? > On 15/12/2014 11:00 pm, "Shazwi Suwandi" > > wrote: > >> Hey David, >

Re: Models not appearing in db. Am I missing something?

2014-12-15 Thread Shazwi Suwandi
Hey guys, I figured it was a problem with the app I'm using for the db. I went to use another app and now the tables are showing. Silly me. Thanks Mario and David for your helpful advice. :) On Tuesday, 16 December 2014 13:33:36 UTC+8, Shazwi Suwandi wrote: > > Hey Mario, > >

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-16 Thread Shazwi Suwandi
Do the demos on the main site work for any of you? On Tuesday, 16 December 2014 12:22:06 UTC+8, Aaron Reabow wrote: > > the thing i am trying to figure out is how this works with my existing > setup. > > I get that you need to install redis. but how does the rest of the stack > change > > mine i

Need some advice on how to go about building a real time web app.

2015-01-02 Thread Shazwi Suwandi
Hi group, I'd like to get some guidance on how to go about thinking about the structure of the web app I'm trying to build. >From a high level perspective, I'm trying to make a web app that facilitates a small business doing camera rentals. To give a use case, if a user makes a rental booking

Re: Need some advice on how to go about building a real time web app.

2015-01-02 Thread Shazwi Suwandi
Michiel: Ah, that's myopic on my part. Both sides are important. Jonas: I see I see. I keep thinking that libraries will make my life a bit easier but maybe what I currently need now does not require the use of them. And are you the author of the article? (I'm assuming it's the same Jonas) Tha