Where I am wrong in loading static files ?

2012-06-22 Thread surya
This is my project folder hierarchy: project \ project \ __init__.py settings.py urls.py views.py ... etc templates \ css \

Re: Where I am wrong in loading static files ?

2012-06-22 Thread surya
mended, try adding a "print > str(STATICFILES_DIRS)" in your settings.py and then run "runserver" so you > can see what actual directories are being included. > > On Fri, Jun 22, 2012 at 9:53 AM, surya wrote: > >> This is my pr

Re: Where I am wrong in loading static files ?

2012-06-30 Thread surya
On Friday, June 22, 2012 9:44:59 PM UTC+5:30, Melvyn Sopacua wrote: > > On 22-6-2012 15:53, surya wrote: > > This is my project folder hierarchy: > > > > project \ > >project \ > > __init__.py &

What kind of authorization I should use for my Django facebook app

2012-06-30 Thread surya
I am building a facebook application using Django where I am using Google Data API (Blogger API) to read website's content. So, what kind of authorization I should use in Google Data API to read the website.. To be specific, what kind of OAuth authorization I should use and how? (I want my use

How to serve static files on heroku without any cloud storage like Amazon S3

2012-07-07 Thread surya
My project is on heroku and my website templates has some CSS, JS files. Totally 5 of them. I don't want to get off with amazon s3 for the sake of those 5 files (very small ones). However, I even need to enter my credit -card, which I don't like :P So, as far as I know, my only option is to co

Apache server is not loading while importing libraries in a class

2012-07-09 Thread surya
This is a bit strange issue (at least for me) project/ apache/ django.wsgi project/ __init__.py, settings.py, urls.py .. pages/ __init__.py widgets.py website_views.py services/ __init__.py apis/

Any free cloud database hosting ?

2012-07-16 Thread surya
I am building a facebook application where I have to use database models (very small size ~ 1MB - 2MB). Is there any good cloud db storage website for hosting the database?? I looked around Amazon Web Services, it has really great offers but "I don't have credit card" :( I thought of using G

Re: Any free cloud database hosting ?

2012-07-16 Thread surya
Heroku even needs "credit card". and let me check about red hat! On Tuesday, July 17, 2012 9:06:18 AM UTC+5:30, Alec Taylor wrote: > > Heroku or Red Hat Open Cloud > > On Tue, Jul 17, 2012 at 1:27 PM, surya wrote: > >> I am building a facebook application wher

Re: Any free cloud database hosting ?

2012-07-16 Thread surya
omatically created via facebook... :P > > So just do the same thing, create an app on facebook and it'll say > "special offer from partner" click that and you'll be setup for free on > Heroku > > On Tue, Jul 17, 2012 at 1:39 PM, surya wrote: > >> Heroku

Re: Any free cloud database hosting ?

2012-07-19 Thread surya
Well, as far as I know, we can't signup for amazon ECS without credit card. Regarding my project: Its a personal project. Right now I am on RedHat OpenShift (developers preview version) currently has some beautiful offers.. On Wednesday, July 18, 2012 1:26:08 AM UTC+5:30, Kurtis wrote: > > Jus

Re: Any free cloud database hosting ?

2012-07-19 Thread surya
"Openshift?" .. what are you trying to say.. On Thursday, July 19, 2012 4:06:03 AM UTC+5:30, doogster wrote: > > Openshift? > > On Monday, July 16, 2012 8:27:23 PM UTC-7, surya wrote: >> >> I am building a facebook application where I have to use database model

Re: Hosting tutorials

2012-08-12 Thread surya
Hey, As you said that you were using Django on Open Shift.. Can you tell me how to configure Django 1.4 and Python 2.7 on openshift DIY with virtualenv?? I tried almost every tutorial on web and fed up with them. I don't know why but I just run into errors.. So, could you please write a detai

How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread surya
I am really fed up with tutorials on web telling how to configure Django & Python 2.7 on OpenShift DIY. So, can write a detailed step-by-step procedure on *how to setup Django 1.4 with Python 2.7 on OpenShift using VirtualEnv*?? Thanks a lot!! -- You received this messa

Re: Hosting tutorials

2012-08-12 Thread surya
ject structure of apps so you will probably > run into problems if you are following tutorials written for 1.3 or older. > > Thanks, > > Scott > > > On Sunday, August 12, 2012 4:50:49 AM UTC-7, surya wrote: >> >> Hey, >> >> As you said that you were usi

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread surya
ble to service your request due to maintenance downtime or capacity problems. Please try again later. -- Apache/2.2.15 (Red Hat) Server at appName-userID.rhcloud.com Port 80 On Sunday, August 12, 2012 10:43:46 PM UTC+5:30, Cal Leeming [Simplicity Media Ltd] wrote: >

Re: 回复: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-13 Thread surya
s post > > -- > Sincerely, > Pengfei Xue > > > > > > 已使用 Sparrow <http://www.sparrowmailapp.com/?sig> > > 已使用 Sparrow <http://www.sparrowmailapp.com/?sig> > > 在 2012年8月12日星期日,下午7:54,surya 写道: > > I am really fed up with tutorials on web telling how to co

Background Programs in Django

2012-09-26 Thread surya
I have to use RSS/ Atom feeds of blogs in my Django app. So, I thought to use Google Feed API. All the API provides is a BIG list of feeds.. If I need a post (say no 25), I need to GET the whole feeds and search every time which is redundant. *So, I am thinking to run a background program which

new elements inside description element - custom feed syndication

2013-03-26 Thread surya
The description part in our project is divided into 3 types: snippet, link, file. Each entry might have any one of those.. So, is it possible to create elements like , inside ? I am not fully aware of RSS/Atom formats. it would be great if you shed some light on the best possible way to imple

How to manage django settings.py for Github, local, production

2013-03-29 Thread surya
Everyone talked about local, production settings.. try: from local_settings.py import * except: # general settings.py my case needs three different settings: Github, local, production I have Django repo on github, and on pc (local). Now, need to push to another tree, the production serv

Re: How to manage django settings.py for Github, local, production

2013-03-29 Thread surya
On Friday, March 29, 2013 1:10:12 PM UTC+5:30, surya wrote: > > Everyone talked about local, production settings.. > > try: >from local_settings.py import * > except: ># general settings.py > > my case needs three different settings: Github, local, producti

need help designing models

2013-04-06 Thread surya
Consider a university college. 1. College has name, uid, website 2. Each college has a many departments - Each department has name, uid. 3. Each batch in a department has name, and ratings. *from django.db import models* * * *class College(models.Model):* * name = models.CharField(max_length=200)*

Re: need help designing models

2013-04-06 Thread surya
On Sunday, April 7, 2013 11:42:50 AM UTC+5:30, Mike Dewhirst wrote: > > On 7/04/2013 3:27pm, surya wrote: > > Consider a university college. > > 1. College has name, uid, website > > 2. Each college has a many departments - Each department has name, uid. > > 3.

should we develop apps based on urls?

2013-04-10 Thread surya
I have an unstructured idea in my to implement (say a weekend hack). The thing here is, how to give it a structure.. 1. should I first define URLs and then divide apps based on it? 2. or something else. I want to develop a ratings site.. where people rate on product X.. I like to divide apps

How to take ForeignKey fields as TextInputs in Forms

2013-04-14 Thread surya
# models.py class Model1 (models.Model): a = models.CharField() b = models.CharField() class Model2 (models.Model): c = models.CharField() ab = models.ForeignKey(Model1) # forms.py class Form(ModelForm): class Meta: model = Model2 fields = ('ab')

defining guid, permalink for feeds and site

2013-04-20 Thread surya
In our website, for short urls we are using a different domain name.. So, get_absolute_url() in model methods uses django.core.urlresolvers.reserve() and thus returns the actual domain name Till now we have been manually defining short urls in views like permalink = settings.SPC['short_URL_roo

How to edit django_openid_auth login template

2013-04-26 Thread surya
I am using https://launchpad.net/django-openid-auth for openid! this is pretty amazing to a lot of extent.. This app provides /openid/login url where users need to signin! this template is very basic and I want to make some changes in it.. Probably, I want to include this in my home page.. I

Little help needed writing models for star-ratings app

2013-04-29 Thread surya
Here is the story so far class Rating(models.Model): positive_rating = models.FloatField(default=0) negative_rating = models.FloatField(default=0) class Book(models.Model): year_pub = models.IntegerField(max_length=4) category = models.ForeignKey(Category) rating = models.ForeignKey(Rating) hash_

Re: Little help needed writing models for star-ratings app

2013-04-29 Thread surya
On Monday, April 29, 2013 10:31:34 PM UTC+5:30, Shawn Milochik wrote: > > It looks like you're not looking for a "little help." You're looking for > someone to do the work for you. > > You'll get the best help if you try something, get stuck, and explain what > you tried and what the error is.

Unable to get notifications - Django Push

2013-05-22 Thread surya
I am using Django-push project for my app. What I am doing is, read my blog, find whether new updates available. If present, store in the db. This is not happening! The source code is here : https://gist.github.com/5628801 So, if would be great if someo

can we pass objects in template tags

2013-07-02 Thread surya
I would like to pass object into template tag, then process it.. Is it possible def my_tag(parser, token): return Node() The token object seems to be a string!! but how to get some objects?? -- You received this message because you are subscribed to the Google Groups "Django users" group.

django create_without_commit method

2013-07-03 Thread surya
We just found a small bug regarding Django Transactions. Our code were using objects.create_without_commit() method!! I just added missing Transactions middleware and it all seems to work amazing now without actually editing the way models work.. Is this a known method? used in transactions and p

Total number of flags on a comment (django.contrib.comment)

2013-07-10 Thread surya
I am using Django 1.4.5, using django.contrib.comments.. Is there any field or model method that gives total number of flags on a comment? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

how to do conditional order_by

2013-07-14 Thread surya
SELECT id, ((positive_count + 1.9208) / (positive_count + negative_count) - 1.96 * SQRT((positive_count * negative_count) / (positive_count + negative_count) + 0.9604) / (positive_count + negative_count)) / (1 + 3.8416 / (positive_count + negative_

Re: Where I am wrong in loading static files ?

2012-06-22 Thread Surya Kasturi
Fri, Jun 22, 2012 at 11:55 AM, surya wrote: > >> Well.. apart from that mistake.. >> >> Is everything alright?? >> >> >> On Friday, June 22, 2012 8:37:55 PM UTC+5:30, Kurtis wrote: >>> >>> Here's a vaguely similar post: http://stackov

Re: Where I am wrong in loading static files ?

2012-06-22 Thread Surya Kasturi
Okay.. I am on it. On Fri, Jun 22, 2012 at 9:44 PM, Melvyn Sopacua wrote: > On 22-6-2012 15:53, surya wrote: > > This is my project folder hierarchy: > > > > project \ > >project \ > > __init__.py >

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Surya Kasturi
go 12, 2012 6:55 a.m., "surya" escribió: > > I am really fed up with tutorials on web telling how to configure Django & >> Python 2.7 on OpenShift <http://openshift.com> DIY. >> >> So, can write a detailed step-by-step procedure on *how to setup Django >&g

[ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2012-10-23 Thread Surya Mukherjee
stractUser): test = 'Hello world' Pretty simple so far. In settings.py: # Specifies SDBUser as the custom User class for Django to use AUTH_USER_MODEL = 'app.MyUser' But when i try to syncdb, everything breaks: [root@Surya project]# manage syncdb Comman

Searching with respect to gender and BY name

2019-06-28 Thread Surya Adhikari
# my coding looks like this in views.py but somehow it only search by name no matter which gender i select .what am i doing wrong? def search(request): if request.method=='POST': srch = request.POST['srh'] srchs = request.POST['gender'] if srch and srchs: match = Snippet.objects.filter(Q(name_

Re: Searching with respect to gender and BY name

2019-07-06 Thread Surya Adhikari
,'search.html',{'sr': query}) > else: > messages.error(request,'no result found') > return HttpResponse("No name found please Add names ") > else: > return render(request,'search.html') > > return render(request,'search.h

linking diffirent wepages

2019-07-08 Thread Surya Adhikari
my nav menu have 2 menus : Home , Search Names ie. from index page when i click student from Sub menu of Search names , it will redirects search.html after if i click again teacher from search.html it will redirects to search.html/ search1.html rather then search1.html only. it works normal

cicking to menu in navebar leads another subpage /subpage

2019-07-08 Thread Surya Adhikari
i have a menu bar as, HOME GALLERY When i click Home its the index page which is being display after when i click Gallary dropdown menu as house it redirects to search.html . BUT when i again click hotel it redirects to 127.0.0.1/search/ search1 insted of 127.0.0.1/search1. i have

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-09 Thread Surya Adhikari
problem. > > ma 8. heinäk. 2019 klo 18.51 Surya Adhikari > kirjoitti: > >> i have a menu bar as, HOME GALLERY >> When i click Home its the index page which is being display after when i >> click Gallary dropdown menu as house it redirects to search.html . BUT

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-10 Thread Surya Adhikari
econdly your hardcoded urls are relative. So each time you click link it > is appended to current url. If you would have been using url-tag you even > wouldn't have this problem. > > ma 8. heinäk. 2019 klo 18.51 Surya Adhikari > kirjoitti: > >> i have a menu bar as, HOME

Django signal to perform update on field when updating m2m field's object.

2020-04-29 Thread surya bhusal
https://stackoverflow.com/questions/61503270/how-to-update-model-field-using-django-signals-when-updating-object-in-m2m-field -- 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

Fwd: Django channels communication not asynchronous

2018-12-24 Thread Akshay Surya
Hi everybody, I wrote django channels code to send api data from two different sources asynchronously through webscokets. The different sources takes few seconds to 1 minute to compute and send back the data. I managed to call them asynchronously using asyncio event loop. But the issue is that the

Re: HttpResponseRedirect failed in django 2.1

2018-12-24 Thread Akshay Surya
Try return HttpResponseRedirect("/login/") instead of return HttpResponseRedirect("login") On Monday, December 24, 2018 at 7:35:13 PM UTC+5:30, ali reza wrote: > > Greetings! > > > Question: > I wrote a view (def register(request)) to check if DB is empty, user can > to create a new SuperUser. W

Re: Django channels communication not asynchronous

2018-12-24 Thread Akshay Surya
ore "self.send" - could that be > the cause? > > In general, the best thing to do if things seem to "block" is to set the > environment variable PYTHONASYNCIODEBUG=1 and Python will warn you if > anything blocks for too long and seems synchronous. > > Andrew

Re: Django/python free Training

2020-12-23 Thread Surya M
Yes, I'm interested , I already working with Django without any knowledge and guidance,It's useful to me. On Wed, Dec 23, 2020, 9:19 PM rpower wrote: > interested > > On Friday, December 18, 2020 at 9:27:14 AM UTC-5 rampage...@gmail.com > wrote: > >> Hi guys, >> >> I am manucho from Kenya and am

Need help in python Django project "online train ticket booking system"

2024-02-19 Thread Surya Santhosh
Need help in python Django project "online train ticket booking system" -- 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

Re:

2024-02-27 Thread Surya Santhosh
I am a fresher who is doing an individual project. I have only the basics of python. On Sun, Feb 25, 2024 at 1:45 PM Light Ofor wrote: > Hello am interested > GitHub:Lyte77 > Whatsapp:+2349136040153 > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Dj

Re: Python Django Training

2020-02-03 Thread Surya M
Hi I'm Surya, doing B.E.CSE 3rd year, 2 months ago, I had an opportunity for Django developer, before that I'm not having knowledge about Django, So, request for a time for two weeks, Unfortunately I'm not able to learn Django in few days,So that I'm eagerly in learning Djang

Help needed in setting up User Auth JWT system

2022-09-14 Thread K Surya Kumar
Hi Team, The question is not much detailed but straightforward. I am looking for the best way to implement JWT authentication using Django. I'm currently developing an application. Where I have to authenticate the users using a JWT token also one user may create multiple token (Mobile App and W

Re: Hiring react developers

2024-10-25 Thread Naga Surya Mangai N
Hi Vineet, I am recently looking for new projects to work on and came across your post. If you are free let us connect through meeting to discuss more about this role. Regards, NSM (Naga Surya Mangai N) On Monday, May 3, 2021 at 10:42:08 AM UTC+5:30 vineet daniel wrote: > Hi Group, >