cross domain ajax request is not allowed ,so I decide to use proxy on
the server side
but I don't know how to finish this, anyone point me some url?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
Hi,
Say I have these simple models:
class Musician(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
class Album(models.Model):
artist = models.ForeignKey(Musician)
name = models.CharField(max_length=100)
Now in `Musician`
quest.
Is there a way to do this? (Any hints are welcome... !)
Thanks in advance
Albert.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django
Hello,
Just getting started learning django, and I'm having trouble with a
view. Here is the model I've created:
from django.db import models
class Post (models.Model):
text = models.CharField(max_length=30)
def __str__(self):
return self.text
I have a couple test rows of
I downloaded Django-1.2.1 and installed it for Python 2.6.4 on
ubuntu.
Please help to fix the IndentationError: unexpected indent problem.
Thanks.
$ uname -a
Linux core2quad 2.6.31-17-generic-pae #54-Ubuntu SMP Thu Dec 10
17:23:29 UTC 2009 i686 GNU/Linux
$tar xzvf Django-1.2.1.tar.gz
$cd Django-
I try the "Writing your first Django app tutorial, part 3" (http://
docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03) with
Django-1.2.1.
I have got a Page not found (404) when modifying the urls.py described
in the "Decoupling the URLconfs" section:
Request Method: GET
Reque
On Jun 10, 6:30 pm, albert kao wrote:
> I try the "Writing your first Django app tutorial, part 3" (http://
> docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03) with
> Django-1.2.1.
> I have got a Page not found (404) when modifying the urls.py described
&g
... Or perhaps mod_wsgi is not the way to go.
Basically I have this situation. I have a Django app that also has an
xmlrpc interface via the wiki recipe[1]. All works fine until I enabled
the ability to upload files. Since they're binary files I use the
xmlrpc binary type.
Well this loads th
On Fri, 2010-08-20 at 14:00 -0700, Kevin wrote:
> I come from the world of mod_python and really enjoyed the PSP
> template system, where I can embed Python code directly in my template
> for dynamically generating menus and such.
>
> What is the recommended method of calling a PSP template from i
On Tue, 2010-08-31 at 04:30 -0700, Robbington wrote:
> Hi,
>
> I seem to be having a problem setting up django and postgresql.
>
> I have created a database and switched users to postgres then sync'd
> the database successfully in my django project directory. But it isn't
> finding the admin page
On Sun, 2010-09-12 at 07:28 -0700, jean polo wrote:
> mmh, if I create another project and use his settings.py in the non-
> working one it works..
> I can't see what's wrong with my settings file, here it is in case
> someone wants to have a look at it:
Then try this:
$ ./manage.py shell
On Sun, 2010-09-12 at 08:59 -0700, jean polo wrote:
> sorry but I'm not sure to get what I'm supposed to find with this ?
Something in your project is shadowing the django framework's namespace,
so .e.g
1. You have created your own module or package and did a
import django
or
I have a model as such
class Foo(models.Model):
someattr = ...
anotherattr = ForeignKey(...)
>From within my view I want to do this:
bar, created = Foo.objects.get_or_create(someattr=somevalue)
if created:
bar.anotherattr = anothervalue
bar.save()
But the problem is I get an exce
On Fri, 2008-02-01 at 09:57 -0800, quizkiwi wrote:
> I am having trouble getting my stylesheet to appear in each html
> file. I have a base template that contains the path to the css file.
> Each page that extends the base template simply adds the path of the
> css file on to its current uri to
On Tue, 2008-02-12 at 13:55 -0600, James Bennett wrote:
> On Feb 12, 2008 1:46 PM, Albert Hopkins <[EMAIL PROTECTED]> wrote:
> > It seems that 'exclude'ing on a M2M field does not have the effect I
> > anticipated. Am I doing something wrong? Basically I have th
e result either way. So am I doing
something wrong or is there another way of doing this?
Thanks,
Albert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
I have a model with a M2M field and I want to filter based on the field
being empty. How do I do this? I tried
MyModel.objects.filter(m2mfield=[]) but that raises a (MySQL) exception.
-a
--~--~-~--~~~---~--~~
You received this message because you are subscrib
On Thu, 2008-02-21 at 17:17 -0600, Brett Hoerner wrote:
> On Thu, Feb 21, 2008 at 5:06 PM, Albert Hopkins <[EMAIL PROTECTED]> wrote:
> > I have a model with a M2M field and I want to filter based on the field
> > being empty. How do I do this? I tried
> > MyMo
Russell Keith-Magee wrote:
>
> I'm sure it could, but I'm almost certain it wont.
The only problem with this is that some kind of sites cannot be tested
with the development server.
If the site streams back the output and incrementally builds it then it
cannot for example read in the css even th
Add this to core/servers/basehttp.py
import SocketServer, BaseHTTPServer
class HTTPServer(SocketServer.ThreadingMixIn,
BaseHTTPServer.HTTPServer):
pass
right before the WSGI server definintion (line 500 or so)
class WSGIServer(HTTPServer):
"""BaseHTTPServer that implements the Pyth
It's actually the same class as before only that it now also inherits
from ThreadingMixIn as well. This overrides one method of the original
class and makes it process each request in a separate thread. See the
docstrings in the SocketServer.py module of your python installation.
It is not a th
There is an option to manage.py
--adminmedia=ADMIN_MEDIA_PATH
that might just do what you need.
--~--~-~--~~~---~--~~
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
Looks nice Leon, congratulations.
You might want to try to tweak the spacing to allow for a little more
text per page ... and allow for the latest news to be read without
having to scroll the page
just an opinion,
i.
--~--~-~--~~~---~--~~
You received this mes
Fredrik Lundh wrote:
> that's probably because they're scientists, and have a pretty good
> understanding of basic math
I think the main reason might be that when they get it wrong they don't
have to pay the difference from their own pocket.
i.
--~--~-~--~~~---~--
> Can anyone comment on the upload limitations of Django?
alas the situation is hopeless,
the fix itself is very simple, unfortunately the patch that was
supposed to add this
http://code.djangoproject.com/ticket/2070
has degenerated into adding a completely unrelated feature (progress
indicato
Adrian Holovaty wrote:
> I have never seen anything like that. I suspect the images are
> corrupted somehow, and I have no idea how that might have happened.
One common cause is opening files in text mode under windows. The flags
need to be 'wb' not just 'w'
i.
--~--~-~--~~-
Paul Childs wrote:
> I'm pretty sure that the download script that I found here...
> http://code.djangoproject.com/ticket/1327
> must not be doing the job properly.
if you are using windows you'll need to change line 41 to:
fp = open(basedir + link, 'wb+')
i.
--~--~-~--~-
Jeffrey Zelt wrote:
> The Django ORM is probably the only piece of Django I am embarrassed
> showing other developers.
Oh really?
> I will not be satisfied if the current ORM is capable of fulfilling 95%
> requirements
You must be inexperienced if you think that an elegant solution to 95%
of
I have not yet used Tramline with Django I am expecting to do so in
case I need to rewrite a Zope application. I have had good experience
using JUpload (again with Zope not Django).
It might be that one needs to deploy the Tramline on a separate mod
python handler not the one Django is running
Joe wrote:
However, as little as 5000 hits a day brings my site down to a crawl
during peak hours! The funny thing is, I have plenty of free ram space
and processor during these peak hours.
Something must be wrong with the setup. Unless all of these users come
in the during the same minute.
On Feb 7, 10:58 pm, "Derek Lee-Wo" <[EMAIL PROTECTED]> wrote:
> My app does a bunch of database queries and processing and when I
> timed that part, it all completes within 0.5 seconds, but the call to
> render_to_response() takes 18 seconds. Needless to say, the end-user
> experience isn't ac
On Feb 11, 7:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The goal is to be able to publish
> a unique uri for a file that can be accessed via a web page, ensure
> that the user is authenticated and permissioned for that uri, then let
> them download the file.
I've been trying to ev
> I am expecting an answer like: "You are crazy: db native searches will always
> be faster"
You are crazy: swish-e searches will always be faster.
Swish-e was created for indexing/searching documents. The only issue at
hand is whether the speedup you get is worth the trouble of having to
integ
Hello All,
For those interested here is an AJAX based demo application using
django, developed with two different javascript libraries: Prototype
and with MochiKit
http://www.personal.psu.edu/iua1/ajax-django-sandbox.htm
cheers,
Istvan
--~--~-~--~~~---~--~~
Yo
I'm sorry to ask so stupid question, but I found no docs about it.
I add a flat page tag in the admin page, and set its URL(same site) , but it can't visit
may I need to add a url pattern to the urlpatterns ??
That's what we need.
2005/11/23, limodou <[EMAIL PROTECTED]>:
>
> > Great job! I was waiting for something like this!
> >
> Thanks. :)
>
> --
> I like python!
> My Blog: http://www.donews.net/limodou
> NewEdit Maillist: http://groups.google.com/group/NewEdit
>
--
欢迎访问我的小站: http://www.2tuzi.com
Fantast idea ~~ i think you should make a site named: billiondallarsarmin, and sell the cells ~2005/12/12, Armin <[EMAIL PROTECTED]>:
Nothing beats what? Visual Basic? hem No soup for you! NEXTTT...
-- 欢迎访问我的小站: http://www.2tuzi.comblog : http://blog.2tuzi.com
Can you speak python language ? 2005/12/12, Armin <[EMAIL PROTECTED]>:
Or I could just teach lee how to spell?-- 欢迎访问我的小站: http://www.2tuzi.comblog : http://blog.2tuzi.com
implements portal sytle templateif I have some apps like calendar, event, etc , and I want a Frontpage that combine all the app in one template, how ?
I use uft-8 encoding, and in admin page, when I insert a record, the Chinese character will become ?
I have located the problem on the database: mysql. and when I change to sqlite, it works prettyso , I think there should be something character setting matter with the mysql database( I have made the "set character set =utf8" in mysql shell.)
2006/1/11, Gábor Farkas <[EMAIL PROTECTED]>:
Jeroen Rui
哦, 要去国外招人,good。2006/1/18, Dominic <[EMAIL PROTECTED]>:
Ni hao" everyone,Do you fancy getting in the fast lane and putting your talents to usein modern Beijing, rapidly becoming a high-tech hub? Are you lured byChina's exotics, its breathtaking cultural heritage, its exquisite (and
sometimes "surpri
Ok add me with this phone number
08130501381
On Mon, Sep 26, 2022, 1:53 PM Abdulfarid Olakunle
wrote:
> Hello fellow developers, I will be creating a WhatsApp group chat later in
> the day, So I will like my fellow Python Django Developers to join the
> group. It will be much easier to discuss t
You need to share a screenshot for better help.
Though it is manage.py and not manage;py
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Wed, 24 Aug 2022, 12:45 REMY TOUITOU, wrote:
> hello , i have a question , i can't make the server running , when i do
> the command p
So what happens when you just run $python manage.py? Does it bring up a
list of commands you can run? If not you have to activate your virtual
environment properly if you are using any.
Or path to the virtual environment py script
On Thu, 25 Aug 2022, 14:01 REMY TOUITOU, wrote:
> Hello here is
No. There is no space. It's just "runserver". One word
On Thu, 25 Aug 2022, 15:27 hajar Benjat, wrote:
> Sorry Is there any space between runser ver??
> Or am I wrong!...
> It must be "runserver"
>
>
> On Thu, Aug 25, 2022, 12:22 PM ALBERT ASHAB
the server running , it is written:
> commanderror:you must set settings.ALLOWED_hosts if debug is false
> thanks you
>
> Le jeu. 25 août 2022 à 14:32, ALBERT ASHABA AHEEBWA <
> ashabaaheebwaalb...@gmail.com> a écrit :
>
>> No. There is no space. It's just &quo
.
Thank you.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.co
pointing to different routes.
There's nothing in the /var/log/nginx/error.log file that is helpful.
Everything is working as expected when DEBUG=True.
Please help point me in the right direction.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
--
You received this message because yo
,
Albert Ashaba Aheebwa
+256 781 435857
On Sun, 29 Jan 2023, 17:20 Larry Martell, wrote:
>
>
> On Sun, Jan 29, 2023 at 9:14 AM ALBERT ASHABA AHEEBWA <
> ashabaaheebwaalb...@gmail.com> wrote:
>
>> So I was able to successfully host my first ever Django app on linode.
>>
If user.is_authenticated
On Wed, 1 Mar 2023, 15:45 Ikrombek, wrote:
> How to make a user's post visible only to that user using Django
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receivin
Hahaha 🤣,
You are not alone my friend.
There's a whole YouTube video about it here:
https://youtu.be/N7v0yvdkIHg
Take a look and rest assured you are not alone.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Thu, 23 Mar 2023, 03:13 Michael Starr, wrote:
> I don't get
latter is what you are looking for. If it's not, click on whatever is
there and on popup, select the appropriate.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Thu, 27 Apr 2023, 23:48 Michael Starr,
wrote:
> I did pip install django on my venv, which is activated, and it
This happened to me once, there was nothing major done to fix it.
This is what I did:
_Reinstall the package
_When you start typing the import, let the editor auto complete on it's own.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Sun, 30 Apr 2023, 00:47 Awobode Emmanuel,
o.uk/
And also don't forget to add the form attr enctype='multipart/form-data'
since it's a file upload field.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Sun, 30 Apr 2023, 05:20 Michael Starr,
wrote:
> To contribute to my own answer, but not to answer th
w or CreateView, if you need to save
data to the database, always use CreateView. But if all you need is capture
data and do something with it, like send an email, then FormView is for
you.. Or a normal FBV can work too
Best Regards,
Albert
On Tue, 2 May 2023, 02:21 Michael Starr,
wrote:
> I
Oh, just realized Dylan had already answered url bit
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Tue, 2 May 2023, 02:41 ALBERT ASHABA AHEEBWA, <
ashabaaheebwaalb...@gmail.com> wrote:
>
> Hi Michael,
>
> On the issue, of urls, Django uses some kind of regex
Hi William,
I am new to programming myself, but I do know some bit of CSS.
I have forked your repo, I will make some changes and make a pull request.
Keep a lookout.
Since you have bootstrap already, it will be quick
Best Regards,
Albert
On Tue, 2 May 2023, 17:20 William Nash (Bill), wrote
This is a simple css issue. You need to change the width of the card.
Making it compact will result in the desired outcome.
If you are using bootstrap use grid instead of flexbox. Set width to w-50.
i.e
<-! Card here -->
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
will be in a better position to help.
With regards to your question, there are various ways to solve it, forms
were a problem to me till just recently.
So share a link to your repo and you will get the help you need.
Best Regards,
Albert
On Thu, 18 May 2023, 08:36 Michael Starr,
wrote:
>
up at night.
So if you don't mind me asking, what's that one app that if you could, you
would create? It can be personal or for the public.
Albert.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
Thank you very much Frank for your insight.
I probably lost sight of what's important for a minute.
Best Regards,
Albert
On Tue, 23 May 2023, 10:24 Frank Chuka, wrote:
> You have to do hundreds or even thousands of unoriginal things in order to
> come up with one Original piece
whether to
create more apps or just do one monolithic app.
Rule of thumb, if the app can stand on it's on, it's better to create than
add to an existing one.
Hope this helps.
Best Regards,
Albert
On Mon, 29 May 2023, 23:56 Zdravko Gyorev, wrote:
> Hi All,
>
> I’m new to D
This is a CSS issue.
Here is a solution for you. Bootstrap 5
Password
Must be 8-20 characters long.
Edit accordingly.
Best Regards,
Albert
On Mon, 29 May 2023, 19:43 Sebastian Jung,
wrote:
> I don't think that this is a django releva
You need to us the some code (Installed apps, views.py as well as urls.py )
for us to help. They're all connected.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Mon, 5 Jun 2023, 16:24 Kit Jenkins, wrote:
> Hello everyone, I just finished my first tutorial django project,
According to your settings, the `Python.png` file should be inside `static`
on the same level as `manage.py`.
|---static /
|-- Python.png
|--manage.py
|--
The file structure of almost that kind. If you're in development and this
is a practice thing, you don't need `whitenoise` just yet.
Explore using Alpine js. Still learning these bits myself so, I don't have
much detail. But Alpine is what you looking for.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Mon, 19 Jun 2023, 17:30 Lee Stevens, wrote:
> Helo,
>
> I have a dataset returning to a page. I n
Go to your settings.py and look for allowed_hosts and make it
ALLOWED_HOSTS = ["*"]
or better yet, if you are in development, turn
DEBUG = False
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,
wrote:
> hello,
> while program
Sorry I meant turn
DEBUG = True
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <
ashabaaheebwaalb...@gmail.com> wrote:
> Go to your settings.py and look for allowed_hosts and make it
> ALLOWED_HOSTS = ["*"]
>
&g
First thing you need to do is open the excellent Django docs at
djangoproject.com, do the polls app and after try doing a Todo list. Things
will fall in place.
After try implementing your previous projects in Django
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Tue, 4 Jul 2023, 17
Server Error can be caused by many issues ranging from database queries to
wrong urls.
Turn debug to true and see what reasons are given .
Are you in production or development?
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Tue, 4 Jul 2023, 18:21 Abdoulaye SENE,
wrote:
> thanks
First I never knew that they had this type of group pretty cool. I am kind
of new to django. I learned it and forgot it already lol. I was following a
tutorial on youtube but I can not figure out why my slug won't work. I can
give you my code if it will help but as of right now I am hoping someo
72 matches
Mail list logo