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: Need help with a hostel management system project using django

2016-10-30 Thread mulianto
Hi, You can create 3 groups and put each user to specific group. Set the permission on the group an all te group member will have the specified permission for Create, Read, Update, Delete. Mulianto Sent from my iPhone On 30 Okt 2016, at 22:37, YOGITHA A N wrote: > I need to create 3 ki

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

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-13 Thread Mulianto
For me better way is on server side use django with API output, which the client will be the frontend, can be using only html+ javascript. On javascript i tried angularjs. There will be many options for the js frontend. Choose the most support available in the community and which one more effici

Re: Django for data management in a no-UI application?

2015-09-03 Thread Mulianto
, embedded app , you name it. Mulianto Sent from my Mini Ipad > On 3 Sep 2015, at 06.02, Avraham Serour wrote: > > +1 to DRF, you may also use the django admin as a quick CRUD to your data > >> On Sep 2, 2015 10:34 PM, "Rafael E. Ferrero" >> wrote: >> I d

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, &g

Re: Beginner: What are the pitfalls of using an html form without using django forms? I.e. form.py

2014-12-09 Thread mulianto
class 4.little code in views to process form data and save to models Try it and tou will found it more usefull Regards, Mulianto Blog: http://muliantophang.blogspot.com Sent from my iPhone On 10 Des 2014, at 09:01, T Kwn wrote: > Thx for the explanation. I thought as much but as a begin

Re: Deploying Django project

2014-11-21 Thread Phang Mulianto
Hi Fred, Sory for the missunderstanding ... i just remember my first time deploying manually with all the typing and typo and the step.. :) Cheers Mulianto On Fri, Nov 21, 2014 at 11:42 PM, Fred Stluka wrote: > Mulianto, > > You said: > > Fred way is good, but need t

Re: Deploying Django project

2014-11-20 Thread Phang Mulianto
production with this way. Regards, Mulianto Blog: http://muliantophang.blogspot.com On Fri, Nov 21, 2014 at 7:37 AM, Fred Stluka wrote: > termopro, > > I have automated my deployments mostly separate from my > version control. > > The other team members and I write, test, co

Re: django Page

2014-07-26 Thread mulianto
Yes you can, just use it first then you will understand what you can do with flatpage. Sent from my iPhone On 26 Jul 2014, at 11:17, ngangsia akumbo wrote: > can i intergrate the cms in my site? > cos i will want something dynamic. > > On Friday, July 25, 2014 7:41:26 PM UTC

Re: django Page

2014-07-25 Thread Mulianto
Hi, You can use django flatpage . Sent from my Mini Ipad > On 23 Jul 2014, at 15.43, ngangsia akumbo wrote: > > I want to create an app where the user has the ability to create new pages on > their website > > the app should be called pages > > can someone give me an idea pease? > -- >

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

2014-07-20 Thread Phang Mulianto
. VIrtualenv will be usefull in production , where several different python version needed or several python libarary with different version used. Regards, Mulianto http://muliantophang.blogspot.com On Mon, Jul 21, 2014 at 2:40 PM, Martin Torre Castro wrote: > Firstly, I want to say "thank

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: Serving static files from another directory rather than "statics"

2014-07-08 Thread mulianto
Hi, Why not generate the new file under static folder. I use compressor but for big js css need time for generate the compress minify file when on production. Sent from my iPhone On 8 Jul 2014, at 10:35, carlos wrote: > Hi, maybe you need use this third party solution > http://django-comp

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. Muli

Re: Angular and Django

2014-06-22 Thread Phang Mulianto
etter user experience with web app, especially with single page app. Regards, Mulianto On Sun, Jun 22, 2014 at 11:51 PM, Scot Hacker wrote: > Angular is really wonderful, and I use it with several Django projects. > But the two are agnostic about each other. All Angular needs from the &g

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

2014-06-10 Thread Phang Mulianto
fabric will be reusable in other project. You would like to automate and simplfy the workflow to upload your production and can be repeated easily. Fabric is more python for deployment. Regards, Mulianto http://muliantophang.blogspot.com On Tue, Jun 10, 2014 at 3:11 PM, Johannes Schneider

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 help

Re: How do I start with this project with django

2014-03-14 Thread mulianto
Hi Rob, For storing uploaded user files, you should put it in media folder, not static folder. Static for your app file like css/js/images. Of course you have to protect the file can be uploaded, in your view you can check the extension of file you allow. Regards Mulianto B : Http

Re: Installing Django

2013-12-12 Thread mulianto
Frederick, Python installer on windows by default install in c:\python 2.x\ And all package like django and others will be under python folder install in libs\site-package\ Better look to use virtenv so you can create a different environment for different project. Thanks Mulianto Blog - Http

Re: How do I test my Django App on my Phone

2013-12-10 Thread mulianto
it just like in a phone or tab. No need from real phone because in android or ios the browser engine will have the same rendered output. Or the easy way is use wifi to make the phone and dev machine can talk and access it as usual via browser. Hope helps ˆ⌣ˆ Sent from my iPhone Mulianto

Re: python virtual environment

2013-12-05 Thread mulianto
Hi, You can use the new manage.py in django 1.6 doc , or you generate a new project, then copy it to your existing project. I have this error also when i try my django1.3 project in django1.6 in virtenv. Hope helps, Regards, Mulianto Blog : Http://muliantophang.blogspot.com Sent from my

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread mulianto
Hi, Why not try use JavaScript file open to process the Information in client. It'a a waste of bandwith in client + server side if upload not needed. Regards, Mulianto Http://muliantophang.blogspot.com Sent from my iPhone On 11 Agt 2013, at 18:02, Bob Aalsma wrote: > Hi Tom,

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
javascript. Regards, Mulianto On Sun, Jul 14, 2013 at 8:18 PM, dotnetCarpenter wrote: > In the end, my project stalled due to lack of resources. We might pick it > up but it's been abandoned for quite some time. I haven't had any django > projects since. Hence, I

Re: data transfer between databases

2013-06-30 Thread mulianto
Hi, Lowest level approach will be just using pgdump for the spesific table or whole database. Regards, mulianto Sent from my iPhone On 30 Jun 2013, at 19:37, Avraham Serour wrote: > manage.py dumpdata > > > On Sun, Jun 30, 2013 at 10:40 AM, Mike Dewhirst wrote: >>

Re: Ajax

2013-06-29 Thread mulianto
Hi, Django can serve Ajax request from any client. Some ajax APP sent json format data to the client some APP just sent partial view to the client as ajax update. Which ever your choise to use with django, it can be done. I have the second type ajax APP, serve from django APP and update the p

Re: django deploy structure

2013-06-27 Thread mulianto
Hi, If cannot use git, for copy the source you can use rsync or use fabric to selective upload the file and reload the app. But easier using GIT Sent from my iPhone On 27 Jun 2013, at 08:15, Nick Apostolakis wrote: > You could use a code versioning system like git or bazaar.when you want to

Re: django's database system

2013-06-05 Thread mulianto
. Regards, Mulianto Sent from my iPhone On 5 Jun 2013, at 18:29, heni yemun wrote: > Hi, > I'm starting to develop some python program to address some database needs- > this is for desktop usage not on the web. So i was wondering if django's > database system can be in

Re: should we develop apps based on urls?

2013-04-10 Thread mulianto
Hi In django you can change the public URL with out change the function call in the view.py The URL.py is flexible and can be just inside each app you create for reusable . Mulianto Sent from my iPhone On 11 Apr 2013, at 13:11, surya wrote: > I have an unstructured idea in my to implem

Re: how to render data coming from server to template using ajax!

2013-02-10 Thread mulianto
hi, the basic is the same with full html site, except in ajax you only render part of your html output. so in ajax you can use ajax call the target url, and the output from the html output is display in the div specified. use jquery or prototype for easy manipulation. hope help Sent from my

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 South- Push to repo or not?

2013-02-04 Thread mulianto
you would include the dev migration. if want history of metadata change , it is there in models file. i mean do you git? Mulianto Sent from my iPhone On 5 Feb 2013, at 11:51, Nikolas Stevenson-Molnar wrote: > I don't see the point of #1 either. It would work well for your first >

Re: On the fly image resize

2013-02-02 Thread mulianto
hi you can use pil , python image lib if you take make your own solution. if want faster solution use other app that do it for you. you can learn from others source code also and creAte your own solution. Sent from my iPhone On 3 Feb 2013, at 04:33, nYmo wrote: > Hi all, > I'm new to djan

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: Implementing a monitoring system with django.

2012-12-13 Thread mulianto
hi what are you monitoring in the 1000 nodes, web server load, db load , network interface stats, cpu load, memory usage, or specific thing. i would use centralized monitoring that collect from all the server in centralized location, with low overhead in periodical time like 10 seconds and s

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

Re: Understanding the use of Apache and nginix with Django

2012-09-08 Thread Phang Mulianto
-- web server application server --- db server hope helps rgds, Mulianto On Sat, Sep 8, 2012 at 10:49 PM, Reginald Choudari < adnanchowdhur...@gmail.com> wrote: > Hello, > > I've just started working on deploying a Django hosted website on my VPS. > Last night

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: How sitemaps used in the Django

2012-08-31 Thread mulianto
hi sitemaps is easy.. last day i implement it in only 2 hours read the documentation in django web. just follow the documentation ˆ⌣ˆ Sent from my iPhone On 31 Agt 2012, at 17:04, Mugdha wrote: > Please help me in generating site maps for app. which is in django. > -- > You received this

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 wan

Re: Finding a developer

2012-06-26 Thread Phang Mulianto
not a rare thing... Regards, Mulianto On Mon, Jun 25, 2012 at 5:16 AM, Mengu wrote: > well, it may be hard to find if you require their presence otherwise > you will find many great developers who are looking for remote full/ > part time work. > > On Jun 24, 11:35 pm, "

Re: Affordable Django hosting solution in India/around?

2012-06-25 Thread Phang Mulianto
package. but you know amazon have free account for 1 years you can try. but if you need permanent you need to pay. better way you lease a vps and join with other fellow there to share the resource and split the payment. Regards, Mulianto On Mon, Jun 25, 2012 at 8:52 PM, Kartik Singhal wrote

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
. any comment appreciated. Thanks, Mulianto -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-user

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
n the template tags : {% for menu in menu_list %} {{ menu.title }} {% if menu.pmmenuitem_set.all %} {% for submenu in menu.pmmenuitem_set.all %} {{ submenu.title }} {% endfor %} {% endif %} {% endfor %} Best Regards, Mulianto -- You received this message because yo

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
button = _generate_button('new') return render_to_response(template_name,locals(),context_instance = RequestContext(request) ) i get manage to save the foreign table with manual assigning the fields. then save it. thanks before. Mulianto -- You received this message because you

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
even fastest monster machine seems slow down. optimization of web app is have many path... database loading, caching, compressing content, static file caching serving, keep alive, and many more.. just my 2 cents.. Regards, Mulianto On Tue, Apr 17, 2012 at 1:02 PM, Andy McKay wrote: > Run dja

Re: cache decorators in urls.py error

2012-04-13 Thread Phang Mulianto
i have to import it first before use it in url.py. somebody gonna fix the documentation ? it only remind you "If you take this approach, don't forget to import cache_page within your URLconf." please add "and import your view function to be called also" anyway.. thank Tom

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.

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
produce faster result with less code, just call the generic function in the url.py files and point to your template to render. hope help.. Mulianto On Wed, Apr 4, 2012 at 10:36 PM, Dan Gentry wrote: > I use generic views - either function or class based - for the common > functionality in m

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
the field name and the field value. how i access the value of the field. i want to create a record list, but not a view template for each model, but 1 template for every model. i hear the django table, but i want to do it my own way.. anyone have suggestion. Thanks. Mulianto -- You received

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

Re: help error in form usage

2011-08-16 Thread Phang Mulianto
. Thanks Mulianto On Tue, Aug 16, 2011 at 11:58 PM, Tom Evans wrote: > Your form is not a model form, and so you cannot pass instance=post. > Since it is just a regular form, you should pass a dictionary of > values, with the keys of the dictionary being the names of the fields. > >

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
rms.DateTimeField(widget=forms.DateTimeInput(),label='Created at') modified_at = forms.DateTimeField(widget=forms.DateTimeInput(),label='Modified at') any clue where the error migh be.. TypeError at /article/change/ __init__() got an unexpected keyword argument &#x

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
ntaxError Exception Value: Caught AttributeError while rendering: 'Post' object has no attribute 'get' Exception Location: c:\python27\lib\site-packages\django\forms\forms.py in value, line 470 Python Executable: c:\python27\python.exe Python Version: 2.7.2 Python Path: [

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

  1   2   >