Error "Cant import.." during manage.py syncdb

2011-08-04 Thread Adam Zedan
Hi i am having problem importing a module in my settings.py located in "D:\Django-1.3\django\bin\cms" I added INSTALLED_APPS = ( . . 'coltrane', ) The folder coltrane is next to the cms folder. Anyways when i go like as shown in cmd I get D:\Django-1.3\django\bin\cms>manage.py syn

Re: Error "Cant import.." during manage.py syncdb

2011-08-04 Thread Adam Zedan
Problem Solved...just needed to register environmental variables On Aug 5, 2:58 am, Adam Zedan wrote: > Hi i am having problem importing a module > in my settings.py located in "D:\Django-1.3\django\bin\cms" > I added > INSTALLED_APPS = ( > . > . >

Question about imports..Python Dejango and Models

2011-08-05 Thread Adam Zedan
Hi while going through the Django Book I ran into the following code Being fairly new to Python the code kind of confused me from django.db import models --->lineA class Publisher(models.Model): --->line B Consider line A from django.db import models This means that in the django directory

Displaying results in Template in a Table ? What is the proper way ?Any app?

2011-08-10 Thread Adam Zedan
Hi i wanted to know what do most people here do when they need to show results in a template which just needs to be displayed in Table. For example displaying data from a db etc in a template. I did try an app called django_tables2 but it just seems really simple with respect to presentation. I tri

Re: Displaying results in Template in a Table ? What is the proper way ?Any app?

2011-08-10 Thread Adam Zedan
Or in other words a good datagrid to use with Djano...What do u people suggest or use?? On Aug 11, 1:52 am, Adam Zedan wrote: > Hi i wanted to know what do most people here do when they need to show > results in a template which just needs to be displayed in Table. > For example displa

data modeling in Django

2011-08-11 Thread Adam Zedan
hi coming from a background dealing with Relational database, i am q bit unfamiliar to the concepts of data modelling such as one to one,one to many etc.When to use them why to use them and the drawbacks of not using them.Could anyone please suggest a good resource(books,websites..) on quickly gett

using djblets data grid.. simple question

2011-08-14 Thread Adam Zedan
I am trying to construct a simplest example to see the djblets data grid in action suppose everything is in my view.py views.py - class UserDataGrid(DataGrid): username = Column("Country Name", sortable=True) first_name = Column("Population", sortable=True) last_name = Col

For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
Hi i am getting a problem with my for loop which i used in my template.Could you kindly let me know what is going wrong in here. The for loop is in a jquery function $(function() { var data = []; {% for x in range(len(content)) %} data[i] =

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
'(len(content))' from 'range(len(content))' -- On Tue, Aug 16, 2011 at 4:50 AM, Konstantin Sushenko wrote: > hello, > > as a result of this you will have a series of 'data[i] = ...' > assignments in your output. where 'i' would b

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
templates is return render_to_response("db.html",{'content':list}) and now i am getting the exception Exception Value: Could not parse the remainder: '[0].roll_no' from 'content[0].roll_no' any ideas??? On Tue, Aug 16, 2011 at 4:58 AM, Landy Chapman wrote: > > >

Re: For loop problem in template..Is this correct

2011-08-15 Thread Adam Zedan
; > Template error > > > > In template d:\django-1.3\django\bin\onlinedemo\dbdemo\templates\db.html, > > error at line 34 > > Could not parse the remainder: '(len(content))' from > 'range(len(content))' > > > > ------ > &

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
Its at the top most post.. have a look at http://groups.google.com/group/django-users/browse_thread/thread/8a509a916ae0023?hl=en On Aug 16, 6:11 am, Konstantin Sushenko wrote: > what is the source code for the blank page? > > On Aug 15, 8:50 pm, Adam Zedan wrote: > > >

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
the url you're using when you get a blank page? http://127.0.0.1:8000/db/ urls.py url('^db/$', dbdemo), views.py def dbdemo(request): list= Student_Info.objects.all() #field=Student_Info._meta.get_all_field_names() return render_to_response("db.html",{'content':list}) On Au

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
Yes the title changes but my table does not appear. It only appear if i double click it ... :( On Tue, Aug 16, 2011 at 7:46 AM, Landy Chapman wrote: > When you get a blank page Does the title change? > Is debug mode on/off? > Is there an error message? > > > You could add this: > >My html I

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
okay going to error ansole of firefox here is what i got Error: Slick is not defined Source File: http://127.0.0.1:8000/db/ Line: 37 which is : grid = new Slick.Grid("#myGrid", data, columns, options); and the warnings are Security Error: Content at http://127.0.0.1:8000/db/ may not load or link

Re: Template html works when double clicked but empty when accessed through server

2011-08-15 Thread Adam Zedan
ic-files/> > [2] > https://docs.djangoproject.**com/en/1.3/ref/contrib/**staticfiles/<https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/> > > -- > > Jani Tiainen > > > On 08/16/2011 09:23 AM, Adam Zedan wrote: > >> okay going to error ans

Re: Template html works when double clicked but empty when accessed through server

2011-08-16 Thread Adam Zedan
So what do u suggest ?? will that also solve the firefox security issue. currenty i am just using the following html code Demo On Aug 16, 11:58 am, Adam Zedan wrote: > Thanks.. that what i just came across. &

Re: Template html works when double clicked but empty when accessed through server

2011-08-17 Thread Adam Zedan
Are ou saying that the reason i get nothing when running through a url is that because of security reasons (i.e) loading data from local machine ?? if so could you tell me how i could solve that problem ?? On Tue, Aug 16, 2011 at 4:43 PM, Konstantin Sushenko wrote: > you do not see anything becau

Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-22 Thread Adam Zedan
I am currently using Django channels for websocket communication. I read this article and it states that I should split the project into two uwsgi instances. It stat

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-23 Thread Adam Zedan
Django channels? I am using Django channels and >> following its suggested package: ASGI provided by Daphne >> >> Regards, >> >> Aldian Fazrihady >> >> On Sat, 23 Mar 2019, 07:58 Adam Zedan, > >> wrote: >> >>> I am currentl

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-23 Thread Adam Zedan
YES it worked. I used Daphne with nginx and it worked. Thank you. On Friday, March 22, 2019 at 5:58:20 PM UTC-7, Adam Zedan wrote: > > I am currently using Django channels for websocket communication. I read > this > <https://django-websocket-redis.readthedocs.io/en/latest/runn

Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
I am trying to create a bash script that would run Daphne and runworker in the background. This is what I came up with so far echo "Killing Redis." killall redis-server #echo "Starting redis Server." redis-server --daemonize yes echo "Stopping NGINX.." sudo /etc/init.d/nginx stop

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
Seems like Daphne and runworker both terminate after session expires On Saturday, March 23, 2019 at 7:51:26 PM UTC-7, Adam Zedan wrote: > > I am trying to create a bash script that would run Daphne and runworker in > the background. > This is what I came up with so far > > >

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
daphne/afcom.log 2>&1 & > > > On Sun, Mar 24, 2019 at 10:52 AM Adam Zedan wrote: > >> I am trying to create a bash script that would run Daphne and runworker >> in the background. >> This is what I came up with so far >> >> >> echo "