Hi all,
I have a jquery js code in a template like that:
jQuery(document).ready(function(){
jQuery("select").change(function(){
var str = $('select option:selected').text();
alert(str);
});
});
and, a select form which is handled by
Hi
class A(models.Model):
f1=...
f2=...
f3=...
class B(models.Model)
f4=Foreignkey(A)
f5=...
f6=...
class BAdmin(admin.ModelAdmin)
list_display= (f4,f4__f2,f4__f3) # this does not work
How do I in the list display ob objects B, diaplay some fields from A
linked by the foreig
I am making an application in django with mongodb.
He liked to have a uplaod files (photos / videos), where to save the files
in a folder on the server, and saves the mongodb url file.
Does anyone know how I can do this?
Someone can help me?
thank you
--
You received this message because you
This is what i do (sorry about my REALLY BAD english):
(Slugify its a snippet that i use to convert the spanish names into a url
you can find them on internet and i think django has his own, but for
english only i think, his names its slugifi
you can use it importing it "from django.template.defaul
this not hard :
from django.db import models
# Create your models here.
class A(models.Model):
""" model A """
name_a = models.CharField(max_length=20)
def __unicode__(self):
return self.name_a
class B(models.Model):
""" Model B"""
keyfield = models.Foreign
try this
$('select').change(function(){
alert(this.value);
}).change();
and to 'select' is better you use field ID otherwise all select field in
you html will trigger this event.
On Tue, May 7, 2013 at 2:14 AM, Fatih Tiryakioglu wrote:
> Hi all,
>
> I have a jquery js code in a templa
Sorry I forgot added it one more line
$('select').change(function(){
alert(this.value);
alert($(":selected", this).text());
}).change();
On Tue, May 7, 2013 at 7:32 AM, Anderson wrote:
> try this
>
> $('select').change(function(){
> alert(this.value);
> }).change();
So I have this loop:
for t in ts.prefetch_related('u__v_set'):
bla = t.x
...
Running this code in debugsqlshell I see three (constant amount in general)
sql statements:
- one getting all t's
- second one getting related u's
- third one getting related v's
Now, in the same l
I have my project in my pc, and on python manage.py runserver, i can view it on
my browser. But how to view from other computer or on the internet and not
locally?... How to make my pc a server to view it from over the internet? Plz
help me guyz!
--
You received this message because you are su
Hi
I am making an application in Django with mongodb.
And I needed an upload of files that I want to use mongodb's GridFS.
I am using mongoengine between Django and mongo.
Has anyone done something like this?
I am new at this and I'm lost.
Someone can help me?
--
You received this message bec
I have my project in my pc, and on python manage.py runserver, i can view it on
my browser. But how to view from other computer or on the internet and not
locally?... How to make my pc a server to view it from over the internet? Plz
help me guyz!
--
You received this message because you are su
On 2013-05-07 08:38, Kakar wrote:
> I have my project in my pc, and on python manage.py runserver, i
> can view it on my browser. But how to view from other computer or
> on the internet and not locally?... How to make my pc a server to
> view it from over the internet?
While it's not generally ad
Thank you for your answer, that i managed to achive,
what I want is to display on the admin object list of object B, display
name_B and name_A
Anyway
Thanks
Alex
Terça-feira, 7 de Maio de 2013 13:43:59 UTC+1, Sergiy Khohlov escreveu:
>
> this not hard :
>
> from django.db import models
>
> #
Awesome. Thanks for the great response. Greatly appreciated.
On Monday, May 6, 2013 6:11:15 PM UTC-6, Russell Keith-Magee wrote:
>
> Hi Brandon,
>
> Essentially, there shouldn't be any difference between a normal and a
> readonly Django project. You set up a Django project as would usually would
pip install gunicorn, then run python manage.py run_gunicorn instead of
runserver.
Ensure that the port you're running your app on is being handled properly
by your Web server app (nginx or Apache). This means that hits to your URL
hit the Web server and are being directed internally at your liste
Hi,
I have deployed a web site that using nginx for serving static content
and apache2 (mod_wsgi) to handle the django requests. I have optimized
obvious things that chrome browser show things like compression,
expiration, js minification etc.
Now I am looking at doing some bench marking of this
Keep in mind that the Django development server is designed neither for
security nor performance, so under no circumstances should you use it as
a production server. With that said, assuming you're using this
for//development purposes, change your manage.py runserver command to
bind to the address
Thank you for your reply! But coud you pls explain in detail how to make it
available over the internet. And i dont have a router, m running it on my
laptop. Pls advise.
On Tue, May 7, 2013 at 11:10 PM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:
> Keep in mind that the Django dev
Den 7. mai 2013 kl. 21:25 skrev Kakar Arunachal Service
:
> Thank you for your reply! But coud you pls explain in detail how to make it
> available over the internet. And i dont have a router, m running it on my
> laptop. Pls advise.
As said earlier, getting your server on the Internet is no
Is there a way to put text in the django admin?
I am trying to display information from another model, to help in your
select of ForeignKeys.
Right now I am adding this information to the __unicode__ function so I can
see the information but there is not context.
Also is there a way to make a
Sorry, i'm on win 7.
On Tue, May 7, 2013 at 9:30 PM, Shawn Milochik wrote:
> pip install gunicorn, then run python manage.py run_gunicorn instead of
> runserver.
>
> Ensure that the port you're running your app on is being handled properly
> by your Web server app (nginx or Apache). This means
Are you sure there's no router involved? Even if it's not /your/ router,
you're likely connected to the internet through a router. But let's step
back for a moment. The phrase "available over the internet" suggests a
production environment, and again, you /should not/ use the Django web
server for
You would need to make port 80 accessible from the internet. As mentioned,
that's out of the scope of the Django User Group. To give you a little bit
of help, I suggest searching for the terms "web server from home". That
should get you started.
On Tue, May 7, 2013 at 4:19 PM, Nikolas Stevenson-M
Em segunda-feira, 6 de maio de 2013 22h35min45s UTC-3, Rodolfo escreveu:
>
> Hi,
>
> I get an
> "UnicodeEncodeError 'ascii' codec can't encode character '\xe3' in
> position 1: ordinal not in range(128)"
>
> with the html fragment:
>
>
> To solve this problem, I changed the module
> "Python
Why Django implicit converts to ascii my latin text ?
Em segunda-feira, 6 de maio de 2013 22h35min45s UTC-3, Rodolfo escreveu:
> Hi,
>
> I get an
> "UnicodeEncodeError 'ascii' codec can't encode character '\xe3' in
> position 1: ordinal not in range(128)"
>
> with the html fragment:
Hello,
I have site that renders a chart using HighCharts with data from static csv
files, as well as a link to download these files. I am developing locally
using runserver.
However, when I alter the data, the changes are not reflected on the site,
and when I download the files from the site, i
Thanks I'll stick to simple JavaScript here.
--
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.com.
To post to this group, se
Did you run collectstatic ?
https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#collectstatic
On Tue, May 7, 2013 at 9:41 PM, wrote:
> Hello,
>
> I have site that renders a chart using HighCharts with data from static
> csv files, as well as a link to download these files. I am devel
FYI1: 'Old' pythonist, but CGI and cli utilities only. django noob.
I'm playing with django (~1.3) and using "Django 1.0 Website
development" by Hourieh as a a tutorial.
FYI2: I have developed and used my own MVC'ish framework for some
time now.
It would be my preference to locate an app under an
On Wed, May 8, 2013 at 10:01 AM, Tim Johnson wrote:
> FYI1: 'Old' pythonist, but CGI and cli utilities only. django noob.
> I'm playing with django (~1.3) and using "Django 1.0 Website
> development" by Hourieh as a a tutorial.
>
> FYI2: I have developed and used my own MVC'ish framework for some
Hello guys.
Do you know of any app to keep track of new users and engage with them?
These are roughly what I'm thinking of (requirements, for nice people):
* Keep track last users singed up.
* Keep track of contacts made to those users. I like to send a personal
welcome email to everyuser that
* Russell Keith-Magee [130507 18:40]:
> On Wed, May 8, 2013 at 10:01 AM, Tim Johnson wrote:
<..> > Example
> > cd my/shiny/new/django/project
> > django-admin.py startproject myproj
> > mkdir apps
> > cd apps
> > manage.py startapp myapp1
> >
> > I can't imagine any issues with that, but if anyon
Coincidentally, Russell just gave the answer to that question less than an
hour ago, so I'll just refer you to his reply:
https://groups.google.com/d/msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To u
I've updated a little models ( OneToOne field is better for your case) Take
a look at
https://docs.djangoproject.com/en/dev/ref/models/fields/
result model is :
class B(models.Model):
""" Model B"""
keyfield = models.OneToOneField('mymodel.A')
name_b = models.CharField(max_length=
34 matches
Mail list logo