I used
mysqldump --default-character-set=utf8 mimi >/home/Result.sql
to export data to /home/Result.sql file on Linux machine.
Then I downloaded the file to my XP and here I used
mysql --default-character-set=utf8 mimi < Result.sql
to import data.
Is it correct?
Regards,
L.
--~--~-~-
> If it was me wanting to generate a static site like this (I had to go
> and look up what SCORM was), I would use the wget solution. It's fast
> and a is going to extract pretty much exactly what a generic user will
> see (the differences will be if you have any content that varies on
> cookies o
> I suspect this is because the development server is single threaded.
> That means one request at a time. So if another thread is tying up the
> request processing, your first thread is out of luck.
>
> Regards,
> Malcolm
The other thread waits several seconds before trying the pingback, and
I w
Malcolm Tredinnick wrote:
> We may need a bit more information there. It sounds like (from the title
> of this email, which isn't mentioned anywhere else here) like one of the
> fields you are expecting to be non-null is empty and so the related
> instance doesn't exist and you can't query agains
On Sat, 2006-10-28 at 01:55 +, NakedHTML wrote:
> I've been looking through the archives here and goggeling around trying
> to resolve what I am sure is a simple problem.
>
> I am trying to do the following:
>
> 1) Display an article
> 2) Display the reporter (many to many field)
> 3) Displa
On Fri, 2006-10-27 at 18:21 -0700, Rob Hudson wrote:
> We're looking at a way to "script out" a Django database driven website
> to static HTML files to be used to bundle and build a SCORM package.
>
> At first I thought we could simply wget the version on the server and
> save each file. But wh
On Fri, 2006-10-27 at 22:31 +, samuraisam wrote:
> I have a pingback function in the app that I'm writing which I start in
> a new thread. Something like this:
>
> def send_pingbacks(source_uri, body):
> thread.start_new_thread(_send_pingbacks_threaded,
> (sett
On Fri, 2006-10-27 at 08:50 -0700, Rob Slotboom wrote:
> Using an inlude tag on my homepage to get a list of current polls
> requires a template. This template lists the polls and provides a link
> for the details. I need to give an url including the modulename:
> (a href="/polls/5")
>
> I don't
On Fri, 2006-10-27 at 06:22 -0700, doubtintom wrote:
> I'm using generic view create_update.update_object to edit items
> selected from a generic list_detail.object_list. Edits to items work
> very well, they hit the database as soon as I submit the form in my
> html template. I know because I ins
On Fri, 2006-10-27 at 17:10 +, [EMAIL PROTECTED] wrote:
> I've got basically the same problem (trying to have rankings available
> different places). I've been looking at Generic Relations and
> Content_type, and think I get it on a conceptual level, but there's
> something I'm missing.
>
>
I've been looking through the archives here and goggeling around trying
to resolve what I am sure is a simple problem.
I am trying to do the following:
1) Display an article
2) Display the reporter (many to many field)
3) Display related images (many to many field)
The model for the complete ap
On 10/26/06, Ice9 <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm kinda new to django, and I ran into a problem
> I'm making a cutom form, and one of the field I want it to be
> SelectField. the problem is I dont want to hard code the choices in, I
> want to generate a set of choice I can use from the data
We're looking at a way to "script out" a Django database driven website
to static HTML files to be used to bundle and build a SCORM package.
At first I thought we could simply wget the version on the server and
save each file. But what seems better would be to write a script that
iterates over t
On Oct 27, 2:28 pm, iain duncan <[EMAIL PROTECTED]> wrote:
> Just wondering if anyone has any recos for best
> toolkit/library/widget/approach to adding dynamic pull down menus to a
> Django app. I am leaning towards using mochikit and dojo whenever
> possible because of their adoption by python f
Hi Sam,
Allow me to clarify my question:
User clicks on a link(pointing to B) on site A
Site B is implementing a HttpResponseRedirect to site C
Site C recieves the request with the header sent from A to B. That is,
it has no idea B exists. I don't want C to know about A :)
Mike
--~--~
I have a pingback function in the app that I'm writing which I start in
a new thread. Something like this:
def send_pingbacks(source_uri, body):
thread.start_new_thread(_send_pingbacks_threaded,
(settings.ROOT_URI, source_uri, body))
Which works. But if I'm pingin
On Oct 27, 3:18 pm, "Mike" <[EMAIL PROTECTED]> wrote:
> HttpResponseRedirect fully preserves the page header sent to it and
> forwards it to whatever URL it is being sent to. For instance, if a
> user is going from Google to site A, where he is immidiatly
> 'HttpResponseRedirect'ed to site B, site
HttpResponseRedirect fully preserves the page header sent to it and
forwards it to whatever URL it is being sent to. For instance, if a
user is going from Google to site A, where he is immidiatly
'HttpResponseRedirect'ed to site B, site B only has knowledge of Google
as apposed to site A.
How can
class Peg(models.Model):
history = OneToManyField(class=PegEntry)
class Hole(models.Model):
peg = models.ForeignKey(class=Peg, blank=True, null=True)
class PegEntry(models.Model):
hole = models.ForeignKey(class=Hole)
start = models.DateTimeField()
end = models.DateTimeField()
On 10/27/06, Waylan Limberg <[EMAIL PROTECTED]> wrote:
>
> I couldn't help but notice that in your example, it is also sorted by
> Sink *descending*. What happens if you click on "Sink" again? If I'm
> not mistaken, it should sort *ascending*. Then again, this just may be
> a coincidence of a poor
Grigory Fateyev wrote:
> http://softwaremaniacs.org/blog/2006/10/18/highlight-js-java/
> You should try Ivan Sagalaev's code!
The actual app is here: http://softwaremaniacs.org/soft/highlight/
And until I translate it into English it's usage should be
understandable just from code examples on
Well, if you simply want to generate forms for your model very easily, check out Manipulators (http://www.djangoproject.com/documentation/forms/). Generating forms for every model in your project completely automatically, like the Admin interface does, involves a bit more than just Manipulators, bu
Perhaps you want to also consider CSS-based menus featuring symantic
goodness (TM):
http://css-discuss.incutio.com/?page=ListMenus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
How did you exported the data between linux and xp?
Have you checked that the db table in mysql is set to utf8?
cheers
:-S
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Just wondering if anyone has any recos for best
toolkit/library/widget/approach to adding dynamic pull down menus to a
Django app. I am leaning towards using mochikit and dojo whenever
possible because of their adoption by python frameworks, but I am also
happy to use whatever fits. Lost in the se
On 10/27/06, John <[EMAIL PROTECTED]> wrote:
> and so on...
> I cant but woefully look at Ruby_oN_rails guys adding ranking with just
> one line @act_as_votable and they are set.. no more bugs to fix, Do you
> guys have any ideas on how to do this, somehting similar to
Ehhh. I don't normally like
On Oct 27, 2006, at 9:45 AM, Merric Mercer wrote:
>
> Many thanks Don. I figured it out, but because of issues with google
> have had problems posting back.
>
> It turns out that I don't even have to use get_profile. Something
> like
> {{ user.userprofile.postcode }} works fine, where userprof
I've got basically the same problem (trying to have rankings available
different places). I've been looking at Generic Relations and
Content_type, and think I get it on a conceptual level, but there's
something I'm missing.
I'm passing the content_type (and an id) in the URL so the view will
kno
I changed SESSION_COOKIE_AGE value in my settings file to lower value.
After an hour or so, I increased the SESSION_COOKIE_AGE value but now I
can not log in neither to admin nor to my Django application.
When I try to log in to admin it says:
Looks like your browser isn't configured to accept co
I changed SESSION_COOKIE_AGE to a lower value and now I can not log in
to admin site.
It says:
Looks like your browser isn't configured to accept cookies. Please
enable cookies, reload this page, and try again
But the bowser does accept cookies.
Eventhough I increased SESSION_COOKIE_AGE value ,
On 10/27/06, Merric Mercer <[EMAIL PROTECTED]> wrote:
>
> Many thanks Don. I figured it out, but because of issues with google
> have had problems posting back.
>
> It turns out that I don't even have to use get_profile. Something like
> {{ user.userprofile.postcode }} works fine, where userprof
Many thanks Don. I figured it out, but because of issues with google
have had problems posting back.
It turns out that I don't even have to use get_profile. Something like
{{ user.userprofile.postcode }} works fine, where userprofile is the
name of the one-to-one class.
MerMer
> On Oct 26
Here's a clue. I tried hosting this project from my apache2 server
using mod_python. The queryset stays in sync after updates, it works
just as expected. Perhaps it is a limitation of the built in Django
server, which after all, is not meant for production. Still, if there
is a way to get the expe
Hello Dirk Eschler!
On Sat, 21 Oct 2006 12:04:07 +0200 you wrote:
>
> Hello,
>
> does anyone use a generic syntax highlighter with Django? I want to
> integrate something like GeSHi [1] in a blog-like application and i
> try to find out where to start.
>
> 1. http://qbnz.com/highlighter/
>
h
Thanks for all your points. I'm having real problems with Google
groups. I figured out what was wrong - but was not able to post in.
Now, these posts are obviously coming in - 24 late.
MerMer
>
> Karen
>
> p.s. Is google groups acting up? I just got a bunch of old mails
> (like this one),
On Oct 26, 2006, at 6:12 AM, MerMer wrote:
> 1) I am able to add fields from the User class directly to a
> template.
> e.g. {{ user.email }}. However, I can't see a way to add the extra
> fields from the UserProfile class directly to the template, even
> though
> it has a one-to-one relation
Using an inlude tag on my homepage to get a list of current polls
requires a template. This template lists the polls and provides a link
for the details. I need to give an url including the modulename:
(a href="/polls/5")
I don't like this approach so I want to ask if it is possible to use
an obj
Yeah, you've got infinite recursion in the first line of your logout
function: it calls itself. I'm not sure why you are even defining
your own logout view? I have my urls.py map my logout url to
django.contrib.auth.views.logout, and supply a context that includes
template_name to display my
On Oct 26, 2006, at 3:24 AM, MerMer wrote:I am trying to get the Logout Method to work, but I keepgetting"Exception Value: maximum recursion depth exceeded!".The view is very straightforward, so I can't understand where I'm goingwrong.from django.contrib.auth import logout, authenticate, logindef
as title,
if I has a class like this
class Media(models.Model):
fileByte = models.IntegerField('文件大小(单位:字节)')
fileName = models.CharField('文件名',maxlength='255')
class Admin: pass
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I set
TIME_ZONE = 'CCT'
(in China)
and
use
uploadBeginFrom = models.DateTimeField ('begin
time',default=datetime.now())
then the time in admin defalut value is "01:29:57"
but the time now actually is "9:33:17"
>>> datetime.now()
datetime.datetime(2006, 10, 26, 9, 33, 17, 942000)
--~
I changed SESSION_COOKIE_AGE value in my settings file to lower value.
After an hour or so, I increased the SESSION_COOKIE_AGE value but now I
can not log in neither to admin nor to my Django application.
When I try to log in to admin it says:
Looks like your browser isn't configured to accept co
my system is japanese winxp sp2 and python2.5
i checkout the r3936 form svn into a new folder and run "setup.py
install", but meet the strange thing: all the file under the folder
'''django''' do not be copied to site-packages, where only one file
created: Django-0.95-py2.5.egg-info!
the output
my system is japanese winxp sp2 and python2.5
i checkout the r3936 form svn and run "setup.py install", but meet the
strange thing: all the file under the folder '''django''' do not be
copied to site-packages, where only one file created:
Django-0.95-py2.5.egg-info!
i browse the source of setup.
On Fri, 2006-10-27 at 13:47 +, RajeshD wrote:
> > We still need some solution for the sort of HTML element, though. This
> > thread started out as a query about controlling the use of input element
> > (with type="text") versus textarea. That part isn't solvable via CSS (it
> > is solvable via
> No. The original model had a CharField, which is represented as an input
> element. The original poster wanted to change that to a textarea element
> (as we do with TextField). You cannot make that change with CSS; it
> involves changing the type of HTML element in the form, not its styling.
>
This seems to be on the fritz again.Chgsets 785 and 790 for ticket #586
fixed this in pre-mr. I have a foreign key related table with a
CharField primary key. Trying to add stuff in the admin creates a list
of primary keys but save fails with "Enter only digits separated by
commas." Any ideas?
-
>
> Only problem i can see with this, is what if you have different
> textarea's that you want to specify the dimensions of?
> I actually have a form with 3 textarea's but they can be the same size
> so it's not an issue right now. But i can imagine that not all
> textarea's are the same size.
> T
I use MySQL database with utf8 character set and utf8_czech_ci
collation.
It works well on Linux server( with mod_python) but when I try to
export the data and import into the same Django
application 9but running on XP machine with runserver 0,the utf8 is
gone.Instead of a proper coding there ar
I'm using generic view create_update.update_object to edit items
selected from a generic list_detail.object_list. Edits to items work
very well, they hit the database as soon as I submit the form in my
html template. I know because I inspect the mysql table directly. So
far so good.
One of my fie
I have a major concern. When I try to use EDIT INLINE in one of my
tables it is deleteing ALL of the records from the database, when I try
to add a record via the Admin.
Here's what I have
Table A
# This is a UserProfile Table
OneToOneKey(USER)
class Admin
Table B
ManyToMany(Table D)
Tab
Hello,
I've been able to get a Django app on Linux running using the built-in
development server by running:
# python manage.py runserver
However, I've been trying for hours now trying to set up Apache +
mod_python, but I keep getting the same "SystemError: NULL result
without error in PyObject
The font of default admin template is bit small in Chinese if you use
firfox view ,( as you can see in the attachment).
Would the developers add 2px of the default font , then it will have a
perfect view in both Chinese and English .
Thanks
--~--~-~--~~~---~--~~
I need an authenticated user to be able to see some of their personal
details on each page of the site.
I have so far created a UserProfile class (which has a one to one
relationship with the User class) in order to provide more information
on the user.
1) I am able to add fields from the Use
I am trying to get the Logout Method to work, but I keep
getting"Exception Value:maximum recursion depth exceeded!".
The view is very straightforward, so I can't understand where I'm going
wrong.
from django.contrib.auth import logout, authenticate, login
def logout(request):
logout
Hi, I'm kinda new to django, and I ran into a problem
I'm making a cutom form, and one of the field I want it to be
SelectField. the problem is I dont want to hard code the choices in, I
want to generate a set of choice I can use from the data i already
have.
For example, I have a lot of polls, an
I'm using generic view create_update.update_object to edit items
selected from a generic list_detail.object_list. Edits to items work
very well, they hit the database as soon as I submit the form in my
html template. I know because I inspect the mysql table directly. So
far so good.
One of my fie
The font of default admin template is bit small in Chinese if you use
firfox view .
Would the developers add 2px of the default font , then it will have a
perfect view in both Chinese and English .
Thanks .
==
I set
TIME_ZONE = 'CCT'
(in China)
Andy Dustman wrote:
> On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I want to store Chinese characters in my MySQL 4.1.11 through Django
> > but unluckily, like most novices, I get totally mess characters when
> > displaying them on utf-8 encoded templates.
> > After s
On 10/27/06, Tom Smith <[EMAIL PROTECTED]> wrote:
> Is there a way to do a complete dump, re-build the database and then
> import stuff (avoiding import errors... i.e doing some form of
> coercion)?
Use mysqldump with the --no-create-info option which avoids dumping
the table schemas. Drop the d
On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I want to store Chinese characters in my MySQL 4.1.11 through Django
> but unluckily, like most novices, I get totally mess characters when
> displaying them on utf-8 encoded templates.
> After some investigation I found that the
On 10/26/06, John Lenton <[EMAIL PROTECTED]> wrote:
>
[snip]
>
> this is as expected; but if you click on "Sink", you get
>
> Source | Sink v
> Anode | Cnode
> Cnode | Bnode
> Mnode | Anode
> Xnode | Anode
>
> i.e., it still sorts by Source instead of Sink. Is this a bug in
> django, or am I f
Benedict Verheyen wrote:
> Those issues are actually solved by using the TextField instead of
> CharField in my model and as Rajesh pointed out, using an inline style
> like this
>
> textarea {width: 30em; height: 7em;}
>
Or you can change the size of the textarea in your view code:
man = MyM
Patrick,
Many thanks - you put me on the right path.
I had the core=true in the Foreign Key like so:-
class C
ForeignKey(Table A, core=true, edit_inline)
I didn't have core=true on any other fields.
So I tried it on another field at this cured the problem. I presume that by
placing core=True
> We still need some solution for the sort of HTML element, though. This
> thread started out as a query about controlling the use of input element
> (with type="text") versus textarea. That part isn't solvable via CSS (it
> is solvable via Javascript, but I'm not sure how natural that is).
Stric
can you give the exact model-definition?
where is "core=True"?
patrick
Am 27.10.2006 um 14:15 schrieb Merric Mercer:
>
> I'm having a problem which is causing me real concern.
>
> When I try to save a new record to a table, via the Admin (editing
> inline), ALL of the records within that table
An amendment to the below. Editing inline (via Table A) is deleting ALL
of the records in Table C that belong to the related profile in table
A. It is not deleting every record in the DB.
Also, apologies for having hijacked the original subject. I'm not sure
how that happened. My posts via
I'm having a problem which is causing me real concern.
When I try to save a new record to a table, via the Admin (editing
inline), ALL of the records within that table are being deleted!
Here's a brief description of what I have:-
class A # This is a user profile table that extends USER
OneT
Hello all!
AT FIRST, THE SITUATION:
The meta attribute unique_together has no validators to check, whether
two foreign keys are unique together or not. Instead of that, the
IntegrityError is raised [URL #1]. So I decided to code my own custom
validator for checking uniqueness of two fields.
I
On Fri, 2006-10-27 at 09:47 +, John wrote:
> Hello guys
>
> I m having lots of fun with python it is like all of sudden I m
> unshackled from the days of zope.. Man it is a lot of fun. It is super
> simple and easy... Ok now to my question, I m trying to add a ranking
> feature to various obj
Hello guys
I m having lots of fun with python it is like all of sudden I m
unshackled from the days of zope.. Man it is a lot of fun. It is super
simple and easy... Ok now to my question, I m trying to add a ranking
feature to various objects in the system, the users, their posts,
their media et
On Fri, 2006-10-27 at 00:06 -0700, Steve Wedig wrote:
> I'm interested in returning a Null (empty) query set. I guess this is
> like the Null Object pattern. So it has to be a QuerySet implements
> the interface (.count, .all, etc) that always returns nothing.
>
> Does anyone know how to do this?
Sean,
Good news!
I major blunder on my side. I was updating from SVN all the time, but
happily ignoring that install, since Python was 'seeing' and old stale
egg on site-packages. I removed everything, and svn'd from tunk
directly on site-packages, and voila. =)
Now I have a different problem,
> Just to establish that we are all on the same page: are you seeing the
> error when you use exactly the model example you posted yesterday and
> cut and paste the queryset constructor that Rajesh posted? That should
> be working.
No, it fails for me, we are on the same page.
> If that is fail
I'm interested in returning a Null (empty) query set. I guess this is
like the Null Object pattern. So it has to be a QuerySet implements
the interface (.count, .all, etc) that always returns nothing.
Does anyone know how to do this?
Thanks!
- Steve
--~--~-~--~~~---~
75 matches
Mail list logo