ity, being managed by the server. So again, absolutely,
> your server code must evaluate what the request is and make sure it's a
> legitimate request given the state of the system.
>
> -- Ben
>
> On Sun, Sep 14, 2014 at 4:32 AM, Jagger <zun...@gmail.com >
> wrote:
>
>
Hi Everyone!
My question is how can I prevent illegal method calls in django web
application.
For example, take a method that updates the data of ExampleModel:
def examplemodel_changeform(request, examplemodel_id):
#Here is the source code of model updating...
Clicking on the submit
eptember 3., szerda 0:18:41 UTC+2 időpontban Jagger a következőt
írta:
>
> Hi Everyone!
>
>
>
> I intend to write an add/update form.
>
>
> *models.py*:
>
> class NewsTickerItem(models.Model):
> #Content
> content = models.CharField(max_l
Hi Everyone!
I intend to write an add/update form.
*models.py*:
class NewsTickerItem(models.Model):
#Content
content = models.CharField(max_length=60)
#Highlighted
is_highlighted = models.BooleanField()
#Active
is_active = models.BooleanField()
# Ordering number
B in templates:
url(r'^$', views.index)
Do you agree?
2014. augusztus 25., hétfő 10:12:14 UTC+2 időpontban Tundebabzy a
következőt írta:
>
> Ok. I'm replying inline:
>
> On 24 Aug 2014 18:43, "Jagger" <zun...@gmail.com > wrote:
> >
> > The link is in
The link is in the base.html of spweb app:
NEWS
2014. augusztus 24., vasárnap 16:59:53 UTC+2 időpontban Tundebabzy a
következőt írta:
>
> How did you write the link as a relative link un your template?
> On 24 Aug 2014 12:30, "Jagger" <zun...@gmail.com >
Hi Everyone!
I use Python 2.7 and Django 1.6 on Xubuntu 14.04.
I'm a beginner. My problem is:
The root URLConf:
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/',
Hi Clifford,
Thanks for your detailed answer.
Regards,
Zoli
> Hi Zoli,
>
> I'm assuming that you're not using virtualenv right now. The best way to
> do this is to use virtualenv, virtualenwrapper, and a revision control
> system like Mercurial. The workflow goes something like this.
>
>
8 matches
Mail list logo