Re: Decoupling Postgres database credentials in django for deployment.

2018-03-30 Thread Phang Mulianto
I agree to set debug to false in your production configuration file. Never debug on production setup. If need enable debug on, use in staging environment or with different django configuration files. On Fri, 30 Mar 2018 23:52 PASCUAL Eric, wrote: > You're perfectly right about the "500 Error

Re: Zoomslider in Django

2018-03-13 Thread Phang Mulianto
Hi This related to static path.can you access the image manually in the browser? The javascript part is run in client browser already, which django finished processing when page sent to client. Hope helps. Regards On 13 Mar 2018 5:17 pm, "deviya sweety" wrote: > Hi, >I'm new to django an

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-21 Thread Phang Mulianto
Hi If you use ssl on apache, the ssl terminate only on apache request from client, then the wsgi from apache is no https. So ssl handled by your webserver service, whether the webserver you use is apache or nginx. Try access the static file with https is it working? On 21 Jan 2018 4:26 pm, "A

Re: Vim plugin that does Django code completion?

2017-07-07 Thread Phang Mulianto
Hi You can use plugin on vim using snipmate. You can create your own autocomplete or using others created snip available for vim. Hope helps. On 7 Jul 2017 11:27 pm, "Robert F." wrote: > Is there a Vim plugin that does code completion for Django? I'd like to > be able to type something like

Re: A public cloud with django backend

2016-09-20 Thread Phang Mulianto
hi, this one : {{i.file_name}} should be {{i.file_name}} it will point to your local webserver if in local dev ( http://127.0.0.1/media/filename) , and in prod will be from your domain ( http://yourdomain.com/media/filename) Cheers, Mulianto On Mon, Sep 19, 2016 at 10:59 PM, 'Tom Evans' via

Re: Django App DB replicas - call for suggestions

2015-02-21 Thread Phang Mulianto
Hi, There is database do the offline and sync to main db server when connection available. See couchdb. or maybe for manual sync, in local db use sqlite, and your client app will sync when online to main db. Regards, mulianto On Sat, Feb 21, 2015 at 10:45 PM, Blazor wrote: > Hi all, > > I wa

Re: Deploying Django project

2014-11-21 Thread Phang Mulianto
urce: Without walls and fences, we need no Windows or Gates. > ------ > On 11/20/14 7:50 PM, Phang Mulianto wrote: > > Hi termopro, > > TO automate the deployment, look for fabric + cuisie (CHef like fabric) . > > You will bored with the command line in each dep

Re: Deploying Django project

2014-11-20 Thread Phang Mulianto
Hi termopro, TO automate the deployment, look for fabric + cuisie (CHef like fabric) . You will bored with the command line in each deployment, and you will need fast and standard way of deploying to each new machine. Fred way is good, but need time to type and remember all the steps. WIth fabri

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-20 Thread Phang Mulianto
Hi Martin, Virtualenv is use for using different version of python or python library so it wont use the default python in system. So when open eclipse for editing, no need to activate virtualenv, but when you need to run the code in specific python install, you need to activate virtualenv. VIrtu

Re: advice from experts

2014-07-20 Thread Phang Mulianto
try using Git / any other SCM On Sun, Jul 20, 2014 at 2:37 PM, Eddilbert Macharia wrote: > hi guys i have created a web application and its my first one,so i luck > the experience in the finer details requirement. > > what are some of the considerations i shld keep in mind before i move the > a

Re: crm app

2014-06-28 Thread Phang Mulianto
have a look of openerp which have crm on the package.. it has cloud offer also, and is still free for a few user. On Sat, Jun 28, 2014 at 1:42 PM, Mike Dewhirst wrote: > Thanks Kelvin. It looks good at first glance. > > Do you know if Django-CRM is suitable for an end user? > > Mike > > > On 2

Re: How to display image in template

2014-06-27 Thread Phang Mulianto
Hi, The image i assume you upload to media folder . Make sure your media folder accessible by webserver which serving static files. To use in template just use the html img src='urltoimage' , and use media_url context variable to not hardening the url. Mulianto http://muliantophang.blogspot.co

Re: Angular and Django

2014-06-22 Thread Phang Mulianto
Angularjs great for a front end, and it just plain html + javascript. we won't need django templating, just put the angular app in a webserver like nginx to server static files, then use django for the API part with REST service. The angular html generation should not in django templating, because

Re: Question about moving code to product from local or development server.

2014-06-10 Thread Phang Mulianto
Hi there, The easy way just copy /transfer your code to your production server manually. To more automate the process, you can use some script . To more advanced and not repeating your self, you can use fabric and create a deployment script for your project. After finish this effort , your fabri

Re: Upgrading from 1.4.3 to 1.4.10

2014-04-18 Thread Phang Mulianto
Hi, i have documenting my journey uprading from django-1.4 to django-1.5 , which i only found some change in the url usage. here are the link of my blog. http://bit.ly/RuPMbr Thanks, Mulianto On Thu, Apr 17, 2014 at 11:46 AM, wrote: > Thanks those release notes were very helpful. > > > > On

Re: django statics

2013-07-15 Thread Phang Mulianto
Hi, Better not use hard coded url path for static, use {{ STATIC_URL }} in your link ; eg : On Mon, Jul 15, 2013 at 7:28 AM, Sébastien Billion < sebastien.bill...@gmail.com> wrote: > Hi, > > In your project folder, you can create a folder media zith a subfolder > css, an other img, js, whate

Re: Choosing a JS framework to go together with Django

2013-07-14 Thread Phang Mulianto
Hi , Why not using REST for serving your data to the Front End app, it can be from mobile app or just web app with HTML + javascript. With that you don't need to worry about redo the template side in django and in your front end js app. With REST serving JSON, no template / html needed for the re

Re: NoReverseMatch at /my_account/

2013-02-05 Thread Phang Mulianto
Oh great.. I have this problem too and cant figure it out. Now i know the problem. I hit this twice already... I am from php too...but build with django is wonderfull and got speed in production :) On Feb 5, 2013 11:04 PM, "frocco" wrote: > Coming from PHP, I love django. > > On Tuesday, Febru

Re: Django apache mod_wsgi permission denied

2012-12-16 Thread Phang Mulianto
THank for the config , i do able to run the apache22 with mod_wsgi + python 2.7 in windows server. On Sun, Dec 2, 2012 at 3:03 PM, Loai Ghoraba wrote: > Thanks a million for the tip :) > > > On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote: > >> >> >> On Saturday, December 1, 2012 3:47:39 A

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread Phang Mulianto
hi, better use csrf for your application security. it is easier to disable it, but security for your app what you will think after it running later. do it correctly now or later . Rgds, Mulianto On Mon, Sep 24, 2012 at 2:56 PM, yati sagade wrote: > Remove {% csrf_token %} from the form AND l

Re: Understanding the use of Apache and nginix with Django

2012-09-08 Thread Phang Mulianto
Hi, The apache or whatever the webserver you choose, should only serving static files, not .py files . the / request to your webserver will be redirect to django process, whether it is uwsgi, or wsgi , or whatever service you choose to deploy. Django runs as application server actually. user --

Re: Django deployment questions

2012-09-02 Thread Phang Mulianto
Hi, i just use git only, create Gits bare repo in the server , upload via git push [ssh of course] , then use the hook/post-update script to pull the git in the production code. so only change/ updated part in the code got uploaded. save Bandwidth, and also reduce error, also faster deploy. for

Re: Caching Options

2012-08-22 Thread Phang Mulianto
Hi i also use johhny cache, why it not hit your cache? Johny cache will cache your queryset and update it when the database table for the queryset updated. I only cache the queryset without add code in the views, johny cache handle the rest Pada 23 Agu 2012 06.46, "James" menulis: > Right now,

Re: Regarding Template langauge

2012-07-10 Thread Phang Mulianto
Hi , if you ask about template use in django ... there are some alternative besides default django template, which like mako, jinja, cheetah... regards, Mulianto On Tue, Jul 10, 2012 at 7:41 PM, kenneth gonsalves wrote: > On Tue, 2012-07-10 at 00:42 -0700, web_premi wrote: > > I want to know t

Re: Finding a developer

2012-06-26 Thread Phang Mulianto
Hi , i think depend on where you search it. if you search djangoers in here..you find plenty of it. if you search ROR in their mailing list, there are plenty of it too.. i think the important think is you know about the engine you want to use.. in today world, developer works from remote is n

Re: Affordable Django hosting solution in India/around?

2012-06-25 Thread Phang Mulianto
Hi, some thing people search... reliable and cheap / affordable. Afforadble / cheap is relative variable there in my opinion. you mention 8$ / month stil expensive and unaffordable for you. in other country it is cheap (us). even the cheap one in amazon aws around 8 -10 $ / month with standart p

Re: How do I get django working without having to manually run the server?

2012-06-17 Thread Phang Mulianto
The python manage.py runserveris intended for fast development time to kick start the apps. you don't need to prepare the apache wsgi stack first, especialy if you want to try something new like django newcomer. it's took time and knowledge to prepare the apache wsgi. but it still an option i

Re: Django in mobile devices

2012-05-19 Thread Phang Mulianto
mean ruby people already done it. On Sat, May 19, 2012 at 4:20 PM, Mario Gudelj wrote: > Have a look at http://www.linuxjournal.com/article/10940 > > Also > http://thedjangoforum.com/board/thread/879/django-python-on-a-standalone-android/ > > On 19 May 2012 00:54, Phang Mulianto

Django in mobile devices

2012-05-18 Thread Phang Mulianto
HI all, i recently see rhomobile.com , which running ruby in mobile devices, and phonegap which use javascript. do anyone aware of the equivalent python / django can be used for mobile devices.. i am thinking about create app for the mobile client using web technology without go deeper in java.

Re: Image Update with Django - Admin site

2012-05-18 Thread Phang Mulianto
hi, thats default behaviour of the image fields. The old image not removed, but still keep intact, and the new image user uploaded will be named with a _1.ext , _2.ext you must handle the saving yourselft to make it rewrite the old images. Check the snippet i use : http://djangosnippets.org/sni

Re: Problem with Jquery over Django

2012-05-16 Thread Phang Mulianto
Hi You need understand the different between open the html directly in you browser with open it from a web server. Check your static file setting and load it, is it returning the js or not On May 17, 2012 12:18 AM, "Marcin Tustin" wrote: > Host your JS on your server, and use an absolute URL. T

Re: New Release of IBM_DB_DJANGO (1.0.4)

2012-05-16 Thread Phang Mulianto
Is the IBM db express free? I don't even know ubtil now... As django user, this is great news On May 16, 2012 9:42 PM, "Andre Terra" wrote: > I don't even use IBM databases, but I just wanted to say thank you and > great job! > > I'm always happy to see Django being embraced all across the IT

Re: how to layout a "big" project in django 1.4 - best practices ?

2012-05-15 Thread Phang Mulianto
Hi.. For the app, i like to use loose couple method from project dir so i can reuse and plug my app in other project easily. I learn it from a book call practical django apps. And i want ask about settings.py, if we make the settings become a folder and put dev.py, prod.py, any step to make ma

Re: Help - Which IDE is best to use.

2012-05-15 Thread Phang Mulianto
Again? Well i just use a simple text editor On May 15, 2012 2:53 PM, "Harold.Miao" wrote: > it is not a free sw > > 2012/5/15 Ezequiel Bertti > >> 10x pycharm... >> >> the best one... >> >> the only one made to work with python and django... >> >> >> On Tue, May 15, 2012 at 12:28 AM, Rivsen wr

Template Tags adding unwanted line feed

2012-05-13 Thread Phang Mulianto
Hi all, i have a template tags for menu... it's display as i wanted in the template. Then i refactor it, change the calling method of the template tags, then the menu shifted down, like given an enter / line feed. and to fix it i use css with adding top:-20px to shifted it up as would normally s

Re: How to use ImageField??

2012-05-08 Thread Phang Mulianto
you would use MEDIA_URL for calling the image path to be view in your template. and the image will be upload to the media root folder.. On Mon, May 7, 2012 at 8:35 PM, Boris Shemigon wrote: > MEDIA_ROOT > denotes > an

Re: Paramiko EOFErrors start to occur after a while

2012-05-08 Thread Phang Mulianto
Hi, i also have the script to sftp using python...run with cron every 30 mins, and suddently since last week, the eol errors come out.. i think this problem bcoz the sftp server.. are you trying rsync to transfer between host ? On Tue, May 8, 2012 at 6:31 AM, Tino de Bruijn wrote: > Hi, > > U

Re: EmailMessage hangs in Windows

2012-04-23 Thread Phang Mulianto
Hi, What s the error msg.. It should smtp error message. Maybe your smtp mail server setting.what mta you use? How many often you sent the email? Maybe your smtp still busy processing other mail. On Apr 24, 2012 7:42 AM, "CrabbyPete" wrote: > I am using > from django.core.mail i

saving a foreign key data table

2012-04-19 Thread Phang Mulianto
HI , I have a template which consist of fields in a master table and a foreign key table. i want user fill the foreign key field data inline in 1 template. and when use submit it, new data of course, i need the data to saved in the master table, then save the foreign table with the foreignkey of

Re: Returning template data from a ManyToMany model

2012-04-17 Thread Phang Mulianto
On Tue, Apr 17, 2012 at 2:10 PM, LJ wrote: > I am having trouble figuring out how to query the database and return > the results in a format that my template can render appropriately. > I have a model that has a ManyToMany field: > > class Student() > ... > parents = models.ManyToManyFiel

Re: High Traffic

2012-04-17 Thread Phang Mulianto
I think this is just a bad practice in the app logic, or bad logic. you have only 9000records, what other languange out there will be process it faster anyway . if you have 1Mill records, do you will retreive all that object first and do the processing, and no caching at all . this will make eve

Re: cache decorators in urls.py error

2012-04-13 Thread Phang Mulianto
for the light.. Regards, Mulianto On Fri, Apr 13, 2012 at 9:27 PM, Tom Evans wrote: > On Fri, Apr 13, 2012 at 1:51 PM, Phang Mulianto > wrote: > > Hi , > > > > i already try > > Randomly trying things is unlikely to fix anything. > > cache_page decorates a funct

Re: cache decorators in urls.py error

2012-04-13 Thread Phang Mulianto
t different error comes out... i don't know whats wrong.. anyone can help point it out.. On Tue, Apr 10, 2012 at 9:42 PM, Tom Evans wrote: > On Sat, Apr 7, 2012 at 3:53 PM, Phang Mulianto > wrote: > > Hi, > > > > i have my apps and try to use cache decorator

Re: Audio Streaming Using Django

2012-04-13 Thread Phang Mulianto
hi, for stream over the web, you can us shoutcast or other torrent stream technology to save your server bandwidth maybe with django you can built your own backend.. Mulianto On Fri, Apr 13, 2012 at 12:21 PM, atul khairnar wrote: > Hi, > I am developing Internet Radio App using Django. But i

cache decorators in urls.py error

2012-04-07 Thread Phang Mulianto
Hi, i have my apps and try to use cache decorator in url.py but got error. Here are the urls.py from django.views.decorators.cache import cache_page urlpatterns = patterns('article.views', #(r'^$','index', { 'template_name': 'blog/public_list.html'}, 'index'), (r'^$',cache_page('index')

Re: Why using Generic Views?

2012-04-07 Thread Phang Mulianto
HI, i understand why need to use generic views after i code some of my function like showing list of data, and the view is the same and i end up copy paste it , not type it (smarter huh?) , just change my db object and pass to my template. well , generic view is come in the rescue and we can prod

Re: Improving Site Performance

2012-04-07 Thread Phang Mulianto
Well.. i think the lazy query is on action. The query executed to get the data from database to be use in your view, if you said requestContext(..) if you remove it, of course the data will not available in your view/template. To reduce the query executed everytime you call the page, try use que

Re: Which Linux distro to use on EC2?

2011-11-14 Thread Phang Mulianto
for me i would like to have an optimized kernel binary and build the kernel in my running machine, and disable all driver not used by system os. it will slim your kernel and faster booting and loading. all precompiled binnary have bloated driver in kernel so it will match any hardware and load th

Re: synchronize django admin interface password with other application passwords

2011-11-06 Thread Phang Mulianto
maybe you can just modify the create_user function in django , matching the hash algorithm of the other backend, or the other backend matching to the django backend. you choose which one would be the single auth method. and of course the admin interface is just as it, except you need custom metho

Re: syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Phang Mulianto
Hi Florian, Thanks for the pointer.. nice and works like a charm.. i will prefer add the options in the settings.py as the table will growing and work for all application table including admin table. and the next target is figure out about the database router for load balancing the sql query..

syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Phang Mulianto
Hi, i try to run syncdb to create table in mysql cluster db, and need have engine=NDBCLUSTER in each table which want to create in the cluster. How to add the engine=NDBCLUSTER from the syncdb command line ? Thanks for the help. Mulianto -- You received this message because you are subscribed

Re: Ajax replacement in django

2011-10-14 Thread Phang Mulianto
ajax use usualy load a div part of html with new content fetch from the server when user do something,like click a submit button. and django process the request as a simple usual request. i have using prototype+scriptocolous for the simple syntax to make an ajax form. i see the jquery version also

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Phang Mulianto
maybe you can try remove the models.py coz by default syncdb look for models.py or anything beneath models folder...but cannot do both of them... On Oct 14, 2011 5:49 PM, "Chen Xu" wrote: > and when i tried "python manage.py sqlall " it gives empty. > I think is it because I am not importing p

Re: Ajax replacement in django

2011-10-12 Thread Phang Mulianto
but for the web html standart you need ajax. maybe you can use some javascript framework like prototype+scripatoulus or jquery to simply work with ajax and browser compatibility issue. On Oct 12, 2011 10:55 PM, "Donald Stufft" wrote: > I don't think there's any reason to insult anyone, let's be

Re: How to use DJANGO as reverse proxy over HTTPS?

2011-10-10 Thread Phang Mulianto
dj@ngo is a web development framework to create web application. to serve as proxy better use real web server like apache, nginx, lighttpd or squid. django buildin web server for development use only. if you want to build a proxy, from ground up you can use python which django base on. On Oct 1

Re: Report tool is supported for django .

2011-10-04 Thread Phang Mulianto
i remember there is how to output to pdf in the documentation.. should there any ready to use tool out there..will be nice.. On Oct 4, 2011 5:03 PM, "Le Huu Nghia" wrote: > Dear all, > > I need to make a report with django . > This report supports (chart , export PDF, Excell ...,) > please give

Re: loaddata and auto_now_add=True

2011-10-03 Thread Phang Mulianto
i think bcoz load data does not use the orm api..while your test use orm to insert data.. On Oct 3, 2011 3:43 PM, "Reikje" wrote: > Hi, I have a test fixture file which I use in unit tests. In some > Models I have date fields defined like this: > models.DateTimeField(auto_now_add=True) for which I

Re: How to do some additional process while saving a django flatpage

2011-10-03 Thread Phang Mulianto
why not query your flatpage db and use the field for the menu in ur table.. flatpage have url and title.. get url n title and put in your menu template..no need signaling can add cache to as the flatpage not modified to often.. On Oct 2, 2011 10:03 PM, "Swaroop Shankar V" wrote: > Hi, > I am

Re: Platform system with Django?

2011-09-26 Thread Phang Mulianto
of cource it can be done. it will be your application logic jobs and the database layout... On Sep 26, 2011 12:57 PM, "Ian" wrote: > I'm new to django, and at this point all I've done is the tutorial. > > But my end goal is to create a website that serves as a platform > system. > > I want users t

Re: access fields value in template

2011-09-18 Thread Phang Mulianto
the ORM query. thanks On Sat, Sep 17, 2011 at 9:43 PM, dm03514 wrote: > You can access just the values by the values property, > {% for value in object.values %} > {{ value }} > {% endfor %} > > > > On Sep 17, 4:33 am, Phang Mulianto wrote: > > hi .. >

access fields value in template

2011-09-17 Thread Phang Mulianto
hi .. i have a pagination objects : in my view i got query and paginate it using this : objects = paginator.page(page) then the objects goes into the view template. i can populate the field value using this template : {% for object in objects.object_list %} {{ object.title }} {{ object.

Re: login auth issue - beginner

2011-08-20 Thread Phang Mulianto
hi.. your request is GET, and you try get the query data with POST . this the errror cause 16. username = request.POST['username'] Exception Value: "Key 'username' not found in " check your login form to use POST.. HTH, Mulianto On Sat, Aug 20, 2011 at 9:59 PM, Phil wrote: > Hi, > > I am

Re: help error in form usage

2011-08-16 Thread Phang Mulianto
If the form is representing a model, you should be using a model form. > > https://docs.djangoproject.com/en/1.3/topics/forms/modelforms/ > > Cheers > > Tom > > On Tue, Aug 16, 2011 at 4:47 PM, Phang Mulianto > wrote: > > > > hi anyone can help me... > > &

Re: help error in form usage

2011-08-16 Thread Phang Mulianto
hi anyone can help me... On Mon, Aug 15, 2011 at 12:39 PM, Phang Mulianto wrote: > Hi Daniel, > > i change it to instance, but still got other errors : > > > def myadmin_change_post(request, > template_name='blog/admin/change_post.html'): > try: >

Re: help error in form usage

2011-08-14 Thread Phang Mulianto
Hi Daniel, i change it to instance, but still got other errors : def myadmin_change_post(request, template_name='blog/admin/change_post.html'): try: id= request.GET.get('id','4') except ValueError: id=1 #post = get_object_or_404(Post,pk=id) post = Post.objects.get(

Re: question about template engine jinja

2011-08-14 Thread Phang Mulianto
well this sounds good.. thanks for the information russell . Mulianto On Sun, Aug 14, 2011 at 3:31 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Sunday, August 14, 2011, Phang Mulianto wrote: > > Thanks Reinout for the response, > > > >

help error in form usage

2011-08-14 Thread Phang Mulianto
hi..need help.. Here are the model : class Post(models.Model): title = models.CharField(max_length=200) content = models.TextField() slug = models.SlugField(max_length=50, unique=True, help_text='Unique Value for Article page URL, created from title.') is_publish = models.Boolean

Re: Template tag: how to output success message above input field

2011-08-14 Thread Phang Mulianto
you can use javascript function... On Sun, Aug 14, 2011 at 4:53 PM, Subhranath Chunder wrote: > Setting a simple context variable in your view would solve your purpose. > > Thanks, > Subhranath Chunder. > www.subhranath.com > > > On Sun, Aug 14, 2011 at 1:22 PM, doniyor wrote: > >> Hey Guys, >> >

Re: question about template engine jinja

2011-08-13 Thread Phang Mulianto
Thanks Reinout for the response, i read the doc , just in time compilation to Python bytecode is used in jinja.. is django default template also do this ? which i see the reason why jinja faster. mulianto On Sun, Aug 14, 2011 at 6:19 AM, Reinout van Rees wrote: > On 13-08-11 14:41, Ph

question about template engine jinja

2011-08-13 Thread Phang Mulianto
Hi all, i need sugestion about templating. if i use many include in django template, is it a good practice and effect the load performance of the application ? and i read about jinja template, why it can be faster than django template engine ? how many of you prefer jinja, and why ? thanks all

Re: django-registration - stuck at Required templates topic

2011-08-04 Thread Phang Mulianto
well..like the error said..you need to put {% csrf_token %} inside your form.. do you read the tutorial? you should read it if you serious getting in django. . it helps you alot as it help me too.. On Aug 5, 2011 12:12 PM, "bob gailer" wrote: > > > On Aug 4, 11:47 pm, Mario Gudelj wrote: >> Hey B

Re: Most stable Linux distribution for Django - Python development

2011-08-01 Thread Phang Mulianto
i will go for freebsd which is unix. but all depends on the admin abd hardware.. On Aug 1, 2011 5:17 PM, "Cal Leeming [Simplicity Media Ltd]" < cal.leem...@simplicitymedialtd.co.uk> wrote: -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: tar xzvf Django-1.3.tar.gz

2011-07-30 Thread Phang Mulianto
you should extract all the content to a folder. in windows you will need to extract it twice until u see some django folder files which you see ass setup.py then from msdos prompt go to the folder..then run this command : python setup.py install assume your python path is set in windows machine.

Re: about django

2011-07-28 Thread Phang Mulianto
welcome to the club. ... start with the documentation like others said, then more deep buy a book for reference, then create a pilot project... On Jul 29, 2011 10:08 AM, "Harjot Gill" wrote: > Refer the following site.It will really help you.This site will help > you to learn django from starting

Re: Real Example

2011-07-22 Thread Phang Mulianto
you better find books in amazon. .. many ready to learn for you.. On Jul 22, 2011 10:41 PM, "Shawn Milochik" wrote: > On 07/22/2011 10:31 AM, Eyad Al-Sibai wrote: >> Hi! >> >> I want a real example of complete django application with source code >> to understand django better >> > > 1. Search Goog

Re: Setting LOGIN_URL dynamically, for different users, based on app?

2011-07-22 Thread Phang Mulianto
with user profile, i translate it this way : after user login,app check the profile of user then decide based on the profile which page sould user be redirected after login,say a to dashboard landing page, b user redirect to console page... why would create 2 login page for 1 project anyway.. On J

Re: block bots and spiders

2011-07-12 Thread Phang Mulianto
yes Bruno, that's what i mean, so this is doable.. and also can prevent DDOS attack to your core web server... On Tue, Jul 12, 2011 at 6:28 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Jul 12, 11:57 am, Phang Mulianto wrote: > > hi.. > > > &

Re: block bots and spiders

2011-07-12 Thread Phang Mulianto
hi.. why not block the spiders in the web server environtment . i think it is better than has to put the code in the apps. is it possible ? because i had read that some web server can block unnecesary request before reach the real web server..like nginx, lighttpd, etc.. On Tue, Jul 12, 2011 at

Re: 'WSGIRequest' object has no attribute 'update'

2011-07-11 Thread Phang Mulianto
> > > The bug is in this line. render_to_response() takes a dictionary as the > context_instance, but this code just passes the request instance. > > You probably meant either: > > return render_to_response(template_name, locals(), > context_instance=(request, )) # Note comma > > or > > return ren

Re: 'WSGIRequest' object has no attribute 'update'

2011-07-11 Thread Phang Mulianto
Hi Shawn, Here are the view called : # Create your views here. from django.shortcuts import render_to_response from django.template import RequestContext from ecomstore.cart import cart def show_cart(request, template_name="cart/cart.html"): if request.method == 'POST': postdata = re

'WSGIRequest' object has no attribute 'update'

2011-07-10 Thread Phang Mulianto
Hi all..i am learning django no, using django 1.3 + python 2.7 . i came from php world... i am using a book , and follow the code in there, but got error and cannot find whats the cause. here are the errors. anyone can give some clue? Thanks AttributeError at /cart/ 'WSGIRequest' object has no a