Hi All,
I am currently writing test cases for views, Which eventually uses database
also.
By default a test database is being created and removed after test are run.
As the database itself is development database, I don't want my test to
create a separate db but use exciting only.
Also I will l
et() query on the other hand, returns a single object.
>
> Saygılarımla,
> Sencer HAMARAT
>
>
>
> On Fri, May 29, 2020 at 4:43 AM django-newbie > wrote:
>
>> Hi,
>> I am new to django and going through a tutorial and now confused with one
>
Hi,
I am new to django and going through a tutorial and now confused with one
particular implementation.
models.py
import json
from django.core.serializers import serialize
from django.db import models
from django.conf import settings
# Create your models here.
def upload_update_image(insta
Hey guys,
I want to create a custom class with methods I will be able to access
everywhere in my Views.
For example a class that add numbers after declaring it somewhere in
Django.
*MyNumber = new GenNumberClass()*
*MyNumber.setNumbers(1,2)*
*result = MyNumber.getAddedResult()*
Please point m
On Wednesday, March 21, 2012 10:29:48 AM UTC, Jani Tiainen wrote:
>
> Like this:
>
> 'default': {
>'ENGINE': '...',
>'OPTIONS': {
> 'threaded': True
>}
> }
>
Thanks again Jani, switching my question to the modwsgi group
Regards, ADN
>
>
--
You received this message b
On Wednesday, March 21, 2012 7:18:16 AM UTC, Jani Tiainen wrote:
>
> 20.3.2012 16:45, Another Django Newbie kirjoitti:
> >
> >
> > On Tuesday, March 20, 2012 10:28:49 AM UTC, Another Django Newbie wrote:
> >
> >
> >
> > On Tuesday,
On Tuesday, March 20, 2012 10:28:49 AM UTC, Another Django Newbie wrote:
>
>
>
> On Tuesday, March 20, 2012 10:01:36 AM UTC, Tom Evans wrote:
>>
>> On Mon, Mar 19, 2012 at 5:24 PM, Jani Tiainen wrote:
>> > Hi,
>> >
>> > Since we use sam
On Tuesday, March 20, 2012 10:01:36 AM UTC, Tom Evans wrote:
>
> On Mon, Mar 19, 2012 at 5:24 PM, Jani Tiainen wrote:
> > Hi,
> >
> > Since we use same setup except one part: we use mod_wsgi instead of
> > mod_fcgi.
> >
> > (Since wsgi is considered to be defacto protocol). Could you try to use
On Thursday, March 15, 2012 1:05:53 PM UTC, Another Django Newbie wrote:
>
> Hi,
>
> I've just started playing with django this week and was following the
> example in the Django Book.
>
> I created an example of my own, based on the models.py in the book and
Hi,
I've just started playing with django this week and was following the
example in the Django Book.
I created an example of my own, based on the models.py in the book and
tested it with manage.py runserver. All worked OK, but when I try it
in apache one of my admin pages is truncated - a number
Hi,
I am trying to figure out a way to call a function depending on the
parameter in the URL.
Example.
url(r'^People/Info/(?P\d+)/$', 'iFriends.People.views.details'),
url(r'^People/Info/(?P[a-z]{3})/$',
'iFriends.People.views.detail_name'),
It works with numeric value. if I use "http://localho
Found it thanks.
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-methods
James Bennett wrote:
> On Wed, Dec 10, 2008 at 6:28 PM, Django Newbie <[EMAIL PROTECTED]> wrote:
>
>> This is probably an easy one, but I've tried what make sense to me wit
This is probably an easy one, but I've tried what make sense to me with
not success. What I want to do is in my admin pages, use the User
module and enter the the user_id of whoever is logged in to add an entry
in one of my foreign key tables.
How can set a field equal to the user_id to be en
With AJAX you can. Javascript is interpreted by the browser, and you
want to call a serverside script. Or you could do it as a form
submission, but I assume you want it to happen without refreshing the
page, so AJAX is how you would do that.
Eric wrote:
> Hello, this might be a silly questio
Thank you.
Alex Koshelev wrote:
> Look at this:
> http://docs.djangoproject.com/en/dev/topics/templates/#id2
>
>
> On Fri, Nov 28, 2008 at 21:43, Django Newbie <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> So I have some text fields
So I have some text fields in the db that have some embedded html in the
text. How do I get the template to render the text as html?
The text fields are recipe.ingredients and recipe.instructions
Recipes
.RecipeName{
font-size: large;
font-weight: bold;
}
.Reci
Graham Dumpleton wrote:
>
> On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote:
>
>> Hi Everybody,
>>
>> Django newbie here. I'm trying to get it to work under apache with
>> mod_python on a freebsd server but running into problems.
Hi Everybody,
Django newbie here. I'm trying to get it to work under apache with
mod_python on a freebsd server but running into problems. I searched
the archives and found similar things, but I tried all the suggestions
and still no luck.
The error:
MOD_PYTHON ERROR
Proc
18 matches
Mail list logo