Hi,
when I mean database I mean the separate databases from within one
mysql database server. So ex:
DB server: server.example.com
Databases that are contained in the one instance of mysql:
People
Books
I have made the connection in the settings.py at the project level but
in the individual appl
se
within my one mysql database server.
eg: I want the create table on Books to be:
create table Books.author ...
Any thoughts?
On Jun 16, 12:40 pm, Nick wrote:
> Which version of django are you working with?
>
> On Jun 16, 2:28 pm, thusjanthan wrote:
>
>
>
> > Hi,
Hi,
I am creating a new django framework and figured django would come
with its own logging feature. I found this one that Fraser wrote but
is no longer in development (http://code.google.com/p/django-logging/
wiki/Overview) Can anyone suggest me a django logging project to log
debug/error message
Hi all.
>From a template suppose base.html in your templates how do I access
the request object without actually passing it via the view. Cause I
can access the user object using {{ user }} but I can't access the
get_full_path using something like {{ request.get_full_path }}
Any thoughts?
Nathan
Hi,
Basically within my application for whatever reason I am changing the
user and doing something like this:
Ex: at first the request.user = UserA
request.user = Users.objects.get(some exp)
After this the request.user = UserB
However once the page redirects to another page the request.user go
Hi,
Can someone provide the syntax for doing the following in django
queries:
Select * from tableA where columnA in ('Value1','Value2','Value3')
Cheers,
nathan.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
project.com/en/1.2/ref/models/querysets/#in
>
> On Jun 24, 2010, at 4:18 PM, thusjanthan wrote:
>
>
>
> > Hi,
>
> > Can someone provide the syntax for doing the following in django
> > queries:
>
> > Select * from tableA where columnA in ('Value1
nvm found it :) just append it to the .exclude method right?
On Jun 24, 1:40 pm, thusjanthan wrote:
> Hi,
>
> How about not in?
>
> Select * from tableA where columnA not in
> ('Value1','Value2','Value3')
>
> On Jun 24, 1:23 pm, Peter Hernd
The quick answer is you have to put the following in your template
right after the declaration:
{% csrf_token %}
Cheers,
Nathan.
On Jun 25, 2:48 am, Li Hui wrote:
> When I add enctype="text/plain" to a post form like method="post" enctype="text/plain">, there is a "CSRF verification
> faile
I have the following relationship between student and course:
class Student(models.Model):
crse_id = models.CharField(max_length=18,primary_key=True)
crse_offer_nbr = models.IntegerField(primary_key=True)
strm = models.CharField(max_length=12,primary_key=True)
class_section = model
Hi,
I have a Topic class I would like to create a form based on. BUT, I
want many of these objects so Topics. How do I obtain such a feature.
Suppose my form object is as follows:
class TopicForms(ModelForm):
class meta:
model = Topic
fields = ('topic_id','topic')
I want to
Can anyone tell me why django refuses to follow the rules and lesson
we learn in our database courses?
I have a table that I do not have control over. Suppose its called the
phone table and it contains the number and the username as the primary
key. But for some reason when I have more than one pr
pending on the database backend you're using, the unique_together
> Meta attribute may accomplish most of what you're looking to do.
>
> On Jun 28, 12:49 pm, thusjanthan wrote:
>
>
>
> > Can anyone tell me why django refuses to follow the rules and lesson
> >
Hi,
I did a query on an object using their "non" primary keys such that:
a = Topic.objects.filter(topic='Politics')
topic is not a primary key. suppose topicID is primary key.
When I run:
a.delete()
the SQL that is executed is:
DELETE FROM 'Topic' WHERE topicID in (1)
my problem is a littl
Hi,
If your project is named myproject and your app is named myapp where
the router is contained. Then you need to set it to the following and
you need to include the Classname as well. So if your AppRouter is
like this which is in the directory myproject.myapp:
AppRouter.py:
Class Router(object)
nt of what you'd like on the right hand side using
context etc...
{% endblock %}
Now when you go to the test view you'll see the page wrapped by your
base.html with the content block in the right frame if you did it
correctly :)
Cheers,
Thusjanthan K
On Jul 6, 2:12 pm, NoviceSortOf w
uld access it as follows:
:
request.META['REMOTE_ADDR']
More information on the META dict can be found at:
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.META
Cheers,
Thusjanthan Kubendranathan
On Jul 6, 2:16 pm, NoviceSortOf wrote:
> I woul
field types but it can only be types from a
database. Don't quote me on that but I think so. Have a look at this
where they go further into custom model fields.
http://docs.djangoproject.com/en/dev/howto/custom-model-fields/#custom-database-types
Hope this helps,
Thusjanthan Kubendranathan
This is the desired behavior. Until the loop is done it cycles the
given values you provided in your case 'a' 'b' and since the loop is
running 3 times it cycles back to 'a' again.
Cheers,
Thusjanthan
On Jul 7, 8:55 am, ringemup wrote:
> Er, that was sloppy
ut
would rather like to use the information's table's values to compute
some other tests for this app. Is there any way to do that in django?
Thusjanthan.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
Hi,
I have a user that enters some formatted text in a html textarea. I
would like to use reportlab to display that and other fields in a PDF.
However when I wrap the text in a Paragraph type it alters the
formatting. Can anyone suggest how to keep the formatting that the
user enters into the text
s:
result += textwrap.fill(line,endwidth) + "\n"
return result
Thusjanthan
On Jul 8, 11:53 am, thusjanthan wrote:
> Hi,
>
> I have a user that enters some formatted text in a html textarea. I
> would like to use reportlab to display that and other fields in
speed rather fast.
Cheers,
Thusjanthan.
On Jul 13, 7:37 am, cjl wrote:
> Djangoholics:
>
> I no longer have the time or interest to maintain my little project:
>
> http://www.instantdjango.com
>
> If anyone would like to take over the project, I would gladly give it
> away. Rig
il is null, the person is returned with
email set to null.
Cheers,
Thusjanthan.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, s
Any suggestions?
On Jul 7, 2:21 pm, thusjanthan wrote:
> Hi,
>
> So I have a read only database called "information" which has been
> modeled in the django framework with the managed=false for the META on
> all its tables. When I run unit tests on another app I do not wa
25 matches
Mail list logo