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
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,
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,
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
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
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
be of service!
> Open Source: 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
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
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.
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
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
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
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,
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
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
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,
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
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.
>
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:
>
>>
>>
>>
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 {%
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
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
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"
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
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
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
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
mean ruby people
already done it.
On Sat, May 19, 2012 at 4:20 PM, Mario Gudelj <mario.gud...@gmail.com>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
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.
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 :
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,
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
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
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...
>>
>>
>>
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
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:
>
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
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
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
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 =
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
ards,
Mulianto
On Fri, Apr 13, 2012 at 9:27 PM, Tom Evans <tevans...@googlemail.com> wrote:
> On Fri, Apr 13, 2012 at 1:51 PM, Phang Mulianto <braveh...@gmail.com>
> wrote:
> > Hi ,
> >
> > i already try
>
> Randomly trying things is unlikely to fix anythi
it out..
On Tue, Apr 10, 2012 at 9:42 PM, Tom Evans <tevans...@googlemail.com> wrote:
> On Sat, Apr 7, 2012 at 3:53 PM, Phang Mulianto <braveh...@gmail.com>
> wrote:
> > Hi,
> >
> > i have my apps and try to use cache decorator in url.py but got error.
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
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'),
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
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
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
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
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..
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
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
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
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
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
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,
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:
>
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"
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
>
in the ORM query.
thanks
On Sat, Sep 17, 2011 at 9:43 PM, dm03514 <dm03...@gmail.com> 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 <b
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 }}
{{
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
s of the fields.
>
> 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 <braveh...@gmail.com>
> wrote
hi anyone can help me...
On Mon, Aug 15, 2011 at 12:39 PM, Phang Mulianto <braveh...@gmail.com>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
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 =
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 <braveh...@gmail.com> wrote:
> > Thanks Reinout for the response
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 =
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
gt; On 13-08-11 14:41, Phang Mulianto wrote:
>
>> and i read about jinja template, why it can be faster than django
>> template engine ?
>>
>
> Jinja basically uses django's syntax, but (if my memory is correct) it
> allows you to do more things than django's templ
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
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
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
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.
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
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
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
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 <braveh...@gmail.com> wrote:
>
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
>
>
> 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
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 =
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
81 matches
Mail list logo