Re: Looking for experienced Django backend engineer

2022-07-03 Thread Tony Wong
Just forward to my teammate. Good luck On Sun, Jul 3, 2022 at 2:04 PM Mohammad Foysal wrote: > > I have been working with python for the last two years. so I feel that I > have some transferable skills to the position you are looking for. As a web > application developer I have professional

Re: Looking for experienced Django backend engineer

2022-07-02 Thread Tony Wong
> > > no part time considered, sorry -- 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 view this discussion on the

Re: Looking for experienced Django backend engineer

2022-07-02 Thread Tony Wong
Yes. Please Good dev is always needed Tony On Sat, Jul 2, 2022 at 3:23 PM Sunday Ajayi wrote: > Hi Tony, > > Apologies for the late response. > But if you still need a dev, I can still share my resume with you. > Regards > *AJAYI Sunday * > (+234) 806 771 5394 >

Re: Stuck with Django on a Synology Diskstation

2021-07-14 Thread Tony Chang
Regards, Tony MH 在 2020年3月3日 星期二下午9:01:31 [UTC+8] 的信中寫道: > Dear nitish > > Thanks for your reply. I guess it is kind of a linux that Synology uses, > but it is different from other distros. So many advice on the internet > builds upon the ability to install packages via apt-get or

Not raising exception when using form_class in generic CreateView

2018-02-11 Thread Tony
Hi, I am using a package called Django Embed Video for my project. It comes with a EmbedVideoField for the model and validation for the URL which checks whether the URL is Youtube or Vimeo. It raises exceptions when using generic create view

How to test get_success_url in CreateView in Django

2018-02-07 Thread Tony
I am trying to write a test for the get_success_url method in a CreateView, to make sure it redirects to the newly created page. But the response status code is 200 instead of 302 as I expected. views.py class BlogCreate(CreateView): model = Blog fields = [‘author’, 'title', ’post’]

Re: Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
Thank you so much. I will give it a go. On Wednesday, January 17, 2018 at 4:48:24 PM UTC+1, Matemática A3K wrote: > > > > On Wed, Jan 17, 2018 at 11:53 AM, Tony <bitbith...@gmail.com > > wrote: > >> I would like to let users either upload a video file(to AWS S3) or

Re: Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
Thank you so much. I will give that go. On Wednesday, January 17, 2018 at 4:48:24 PM UTC+1, Matemática A3K wrote: > > > > On Wed, Jan 17, 2018 at 11:53 AM, Tony <bitbith...@gmail.com > > wrote: > >> I would like to let users either upload a video file(to AWS S3) or

Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
I would like to let users either upload a video file(to AWS S3) or provide an URL to a video, e.g. Youtube/Vimeo. I found a similar question for Rails: Rails: upload a file OR store a url

Re: How do I pass the CSRF token when using a jQuery post

2017-11-09 Thread Tony King
Thanks Gourav, I have it working now and I can even understand it, which is even better. For anyone interested my revised working solution is below. I'm sure it would be better practice putting the token into the headers as described in the documentation and elsewhere but I could not get it

Re: static files in production

2017-11-08 Thread Tony King
Ok, I've found a solution here which allows the serving of static files from within the project file folder structure as gathered by collectstatic. I now see that the FastCGI Handler required for

Re: static files in production

2017-11-08 Thread Tony King
I seem to be struggling with the most simple of things and I've barely started this project, I'm just trying to test out some basics including the deployment. Kind regards, Tony -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

static files in production

2017-11-07 Thread Tony King
, which I'm hoping will be useful. Can someone please help? Kind regards, Tony -- 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-user

How do I pass the CSRF token when using a jQuery post

2017-11-07 Thread Tony King
Hi, I thought I'd finally understood this but it seems I have not and I've spent far too much time trying to do it myself. I have a view rendering to the template below, which is displaying a number of buttons that when clicked will execute another Python function in the views.py. This

Re: My first project - URL issue?

2017-11-02 Thread Tony King
> > Ok, well I've solved my immediate problem but clearly need to learn more > about JavaScript, jQuery and CSRF tokens. > But for anyone with a similar URL issue, I did the following; Added an appname setting to my urls.py appname = 'shopfront' urlpatterns = [ url(r'^$', views.index,

My first project - URL issue?

2017-11-02 Thread Tony King
Hi, I've started my first real project (django v1.11.4 and Python 3.6.2) and I'm probably trying to run before I'm ready, but anyway I'm here. I'm essentially trying to create a front-end menu, that will eventually launch and log-on to either a local application or another web-site. This

Re: Tutorial part 4 - get_queryset

2017-10-17 Thread Tony King
Thanks James, that is a big help and I'm sure the link will provide some worthwhile extra reading, although I've clearly got a lot to learn anyway. Regards, Tony -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

widget form

2016-03-19 Thread Tony Peña
hi, if i got a form for example with 2 charfield, and bottom a check box how can i do if that checkbox is true appears the next other 2 charfields ?(maybe hide) this exist with some function on django-admin ? thanxs -- perl -le 's ffSfs.s fSf\x54\x6F\x6E\x79

Re: Model or Form class

2016-03-12 Thread Tony Flury
You can use forms.Form when you want to build a custom form which isn't directly connected to a model on the database. For instance one use for a forms.Form is where you are collecting data which will be stored into attributes on different models. The documentation I think uses

Re: Showing BooleanField checkbox on left

2016-01-15 Thread Tony Flury
On Thursday, 14 January 2016 17:55:41 UTC, Sayse wrote: > > Yea I've heard of it. Have they managed to achieve this? I'd be interested > to see how they've done it if so... > > I was hoping to find a way to do this with native django if possible > One way that might work is to subclass the

Re: why cannot delete attribute id of model?

2016-01-11 Thread Tony Flury
Stating the value of either the id or pk field to None is the recommended way to rest the primary key when you take a copy of a record, but Xudong wanted to delete the field entirely: which I don't understand. -- You received this message because you are subscribed to the Google Groups

Re: why cannot delete attribute id of model?

2016-01-11 Thread Tony Flury
Why do you want to delete the id field. The idea of a primary key field is central to relational databases. If you to suppress the automatically generated primary key then you need to assign another field as the unique primary key: as far as I know that will prevent the id field being created.

Re: Execute code which runs on the database only when the server is running - and doesn't need users to view pages.

2016-01-11 Thread Tony Flury
Andreas, Thanks for your answer. Certainly it looks like running celery might alleviate the issue with threading stopping the management commands, but the problem with your suggestion lies with that flag. If My code was able to identify that the server is running to the point of being able to

Execute code which runs on the database only when the server is running - and doesn't need users to view pages.

2016-01-11 Thread Tony Flury
I have a small background task (executed by using threading.Timer) which I want to start up when the server starts, but doesn't need to start when a management command runs. The background task performs operations on the database, so relies on importing the models etc. I have tried using the

Re: filter in queryset

2015-09-13 Thread Tony Peña
thanxs so much... that works perfect.! 2015-09-13 11:19 GMT+02:00 James Schneider : > Not sure if I'm following you 100%, but i think you can filter like this: >> >> return qs.filter(classi__prof=request.user) >> >> This would match the MAC to a class, and the class to a

filter in queryset

2015-09-12 Thread Tony Peña
Hi need a help with this queryset problem i got into my models. models.py - class Classi(models.Model): classi = models.CharField('Class Name', max_length='20', unique=True) internet = models.BooleanField(default=None) using Calssi can do: create: A, B. C class

limit insert rows into model database

2015-08-12 Thread Tony Peña
Hi exist some settings to only insert X number of rows in a model? django.db. (i guess, restrict 5 rows) as simple way ? or setting directly into MySQL ? because, i override the save method to check if: # models.py class domain(model.Model): ... max_accounts =

Re: display readonly or not

2015-08-11 Thread Tony Peña
because i don't know how... that's why i ask :) 2015-08-11 11:17 GMT+02:00 Daniel Roseman : > On Tuesday, 11 August 2015 06:24:32 UTC+1, Mike Dewhirst wrote: > > >> There is a get_read_only() method in the admin.ModelAdmin class. It >> normally returns self.readonly_fields

Re: display readonly or not

2015-08-11 Thread Tony Peña
= ro_fields 2015-08-11 7:23 GMT+02:00 Mike Dewhirst <mi...@dewhirst.com.au>: > On 11/08/2015 7:25 AM, Tony Peña wrote: > >> hi >> >> i have this on my model.admin >> >> class MyDomainAdmin(admin.ModelAdmin): >> Â Â list_display = ('domain', 'enab

display readonly or not

2015-08-10 Thread Tony Peña
hi i have this on my model.admin class MyDomainAdmin(admin.ModelAdmin): list_display = ('domain', 'enabled', 'avscan', 'spamassassin', 'max_accounts') list_filter = ('enabled',) exclude = ('uid', 'gid', 'maildir') # this part is my pseudo-code logic I want but i can't solved. if

Deploying Django, nginx , gunicorn, postgresql

2015-02-20 Thread Tony Kyriakidis
Hello, It's been a week now since the day i started trying to deploy a test blog application on digital ocean. I tried everthing and if you go to the IP: http://188.166.62.146 you get a Welcome to Nginx page. when i go to http://188.166.62.146:8001 i get a (400 Bad Request) error. Here on

Re: Trouble changing from sqlite3 to postgres

2015-02-17 Thread tony . guil35
, params) django.db.utils.ProgrammingError: column "date" cannot be cast automatically to type integer HINT: Specify a USING expression to perform the conversion. On Tuesday, February 17, 2015 at 4:39:27 PM UTC-8, Joel Burton wrote: > > The error is probably in code you wrote tha

Trouble changing from sqlite3 to postgres

2015-02-17 Thread tony . guil35
I have written a simple Django app (my first) that works with sqlite3 database. I want to change to postgres, but when I run the Django 1.7 migration utility with the command "python manage.py migrate" I get the error: psycopg2.ProgrammingError: column "date" cannot be cast automatically

Re: Attempting to setup Graphite (Django/Gunicorn) DJANGO_PATH not set and "no such table: auth user"

2014-03-12 Thread Tony Su
//github.com/gdbtek/setup-graphite Tony -- 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

Attempting to setup Graphite (Django/Gunicorn) DJANGO_PATH not set and "no such table: auth user"

2014-03-11 Thread Tony Su
that differ from the official documentation for a week now... Thx, Tony I have 2 current questions: Q - I strongly suspect that DJANGO_PATH is not set. I've found documentation that suggests how it might be set from an interactive console on Windows http://stackoverflow.com/questions/7479493/django

Customize error messages for django-registration

2013-09-05 Thread Tony Lâmpada
Hi, I have a question about django-registration ( https://bitbucket.org/ubernostrum/django-registration), but I can't find their issue tracker or a mailing list for it, so I'll try mu luck here. My application enables login via OpenID and login/password. Some users "forget their password" on FS

Custom logging formatter issue

2013-07-17 Thread Tony D
I am attempting to eventually set up django logging via a third-party service. For this I am using python-json-logger and setting up an appropriate formatter in the LOGGING dictionary in settings.py. I believe I have it set up correctly, but when the formatter is enabled the first page I get

Re: Django Chartit Installed, How do I run the demo???

2013-07-16 Thread Tony Guilin
BTW, I'm using http://chartit.shutupandship.com/docs/#how-to-use On Tuesday, July 16, 2013 10:43:39 PM UTC-7, Tony Guilin wrote: > > I'm a complete noob. > > I've been able to go through the Djano tutorial with minimal issues. > > I successfully installed this according to: >

Django Chartit Installed, How do I run the demo???

2013-07-16 Thread Tony Guilin
I'm a complete noob. I've been able to go through the Djano tutorial with minimal issues. I successfully installed this according to: Installation¶ You can install Django-Chartit from PyPI. Just do $ pip install django_chartit You also

Re: Writing your first Django app - Tutorial Question

2013-06-25 Thread Tony Guilin
> > you have missed > from django.utils import timezone > That worked! Thanks. P.S. I just copy and paste in Chrome (in Ubuntu) and it picks up the formatting. On Tuesday, June 4, 2013 4:10:23 PM UTC-7, Tony Guilin wrote: > > In the https://docs.djangoprojec

Re: Anyone using django tabs ?

2013-06-20 Thread tony gair
The answer I think is no , ah well. On Thursday, 20 June 2013 09:28:39 UTC, tony gair wrote: > > I am trying django tabs for my site navigation and was wondering is I have > to list multiple tabs in the html file thats inherits from base.html > > {% if request.us

Anyone using django tabs ?

2013-06-20 Thread tony gair
I am trying django tabs for my site navigation and was wondering is I have to list multiple tabs in the html file thats inherits from base.html {% if request.user.is_superuser %} {% activetab "topnav" "home" %} {% activetab "topnav" "admin" %} {% endif %} or can I say {% if

Re: readonly_fields

2013-06-19 Thread tony gair
Ah thanks that explains that I'll look into changing the readonly attribute on the widget, is there a list of widgets do you know as some of these are choice fields i.e. non text and non integer fields On Wed, Jun 19, 2013 at 1:26 PM, Timster wrote: > Where are you

readonly_fields

2013-06-19 Thread tony gair
I have tried to use readonly_fields in a form to designate fields that the user is not allowed to change. class Meta readonly_fields = [user] e.g. However when I show the form the user can edit them.doh, btw I do want to display, but not to edit! -- You received this message

Re: database -> model -> charting

2013-06-10 Thread tony gair
, tony gair wrote: > > I tried that on 1.5 and tried my code out in a 1.4 install. I get the same > error. Interestingly in stack overflow they mention this problem at > http://stackoverflow.com/questions/8644060/caught-typeerror-while-rendering-init-got-an-unexpected-keyw

Re: database -> model -> charting

2013-06-10 Thread tony gair
50 > > Python Executable:/usr/bin/python > > Python Version:2.7.4 > > Python Path: > > ['/home/tony/django/sh', > > '/usr/local/lib/python2.7/dist-packages/Django-1.5.1-py2.7.egg', > > '/usr/lib/python2.7', > > '/usr/lib/python2.7/plat-i386-linux-gn

Re: database -> model -> charting

2013-06-10 Thread tony gair
Location: /usr/lib/python2.7/json/__init__.py in dumps, line 250 Python Executable: /usr/bin/python Python Version: 2.7.4 Python Path: ['/home/tony/django/sh', '/usr/local/lib/python2.7/dist-packages/Django-1.5.1-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib

Re: database -> model -> charting

2013-06-08 Thread tony gair
After trying this I find a problem with the types it can use. For example it does not seem to like BigIntegerField unless there is something else I am doing wrong. Thinking about it, maybe I am letting chartit do too much for me but I do like the idea of something doing the hard thinking for me

Re: database -> model -> charting

2013-06-07 Thread tony gair
Been trying out a couple over the last few hours. I have to say, the one you mention seems streets ahead of anything else, and its documented really well, which is the clincher for me. Many thanks for that super helpful info! On Friday, 7 June 2013 11:33:07 UTC+1, Christian Schulz wrote: > >

database -> model -> charting

2013-06-07 Thread tony gair
I would like to hear peoples opinions on third party django charting apps, with various considerations. My primary consideration would ease of use by a django noob. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: getting information from a many to many model from user

2013-06-07 Thread tony gair
a class function ? On Thursday, 6 June 2013 13:02:02 UTC, Daniel Roseman wrote: > > On Thursday, 6 June 2013 11:00:40 UTC+1, tony gair wrote: > >> >> >> >> I use the Userena app to manage my users but I want the superuser to >> choose the organisation for

getting information from a many to many model from user

2013-06-06 Thread tony gair
I use the Userena app to manage my users but I want the superuser to choose the organisation for them so they cannot wonder around other organisations information. I can either create a foreign key in their profile to point to the organisation but then I expect they can change it, which

Writing your first Django app - Tutorial Question

2013-06-04 Thread Tony Guilin
nd "p.save()" because of the error below. > tony@tonymachine:~/django_projects/mysite$ python manage.py shell > Python 2.7.3 (default, Aug 1 2012, 05:16:07) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more

Re: CBVs and logging a user

2013-06-04 Thread tony gair
repr(main.urlpatterns) > > (Since the error message complains that main.urls has no url patterns in > it.) > > If you don't expect to use such a module, check your existing urls.py > files for a url pattern that does include('main.urls'), or something close. > > > On

Re: CBVs and logging a user

2013-06-04 Thread tony gair
my URLS_CONF points to my urls.py in my main project directory. The error only once I press the login button, the form is validated, the user then(correctly ) is authenticated then it fails with the error when I try to redirect it to a view. On Monday, June 3, 2013 2:45:09 PM UTC, tony gair

CBVs and logging a user

2013-06-03 Thread tony gair
I'm getting an error Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/ Django Version: 1.5.1 Exception Type: ImproperlyConfigured Exception Value: The included urlconf main.urls doesn't have any patterns in it my login form and view has been modified to work off email and

Re: django , python and ides

2013-06-03 Thread tony gair
Got to say that this looks very promising. Theres also a Django plugin too. dddjjjannnggooo! On Saturday, June 1, 2013 9:01:00 PM UTC, Doug S wrote: > > Hey I just ran into a new opensource Python IDE that looks interesting > that wasn't around when I commited to Aptana > Ninja-ide >

django , python and ides

2013-05-31 Thread tony gair
Python and Django are not my first languages and currently I am using it like I would a compiled language inside gedit on debian wheezy. I was actually quite surprised to find a lot of people using it on windows and macs when I went to my local python user group but enough digression!. I was

CBVs and using existing forms for user authentication etc

2013-05-31 Thread tony gair
I'm trying to write my first django app using cbv's and good practice ala 2 scoops! (thanks for all the help so far in this forum btw!) I have constructed the app using django braces and CBV's and have noticed that I can only authenticate into my app through the admin panel. I suspect that

Re: django 1.5 abstractuser / accessing information of logged on user

2013-05-30 Thread tony gair
(), name="premuv" ), do you know what I would substitute as_view() for , thanks for the grounding in these CBV, I am using them ala 2 scoops of django! On Thursday, 30 May 2013 11:14:27 UTC, Tom Evans wrote: > > On Thu, May 30, 2013 at 9:57 AM, tony gair <tonyt...@gmail.com>

Re: django 1.5 abstractuser / accessing information of logged on user

2013-05-30 Thread tony gair
; On Thu, May 30, 2013 at 9:57 AM, tony gair <tonyt...@gmail.com> > wrote: > > > > I am using CBV / django braces for authentication. My user authorisation > > model inherits abstractuser and adds a few fields which are foreign keys > to > > two other mod

Re: linking the logged in user to other models to filter query sets -( noobie )

2013-05-30 Thread tony gair
with the line self.user = kwargs.pop('user') do I need to import anything to access that the value 'user' ? On Wednesday, 29 May 2013 15:16:32 UTC, Tom Evans wrote: > > On Wed, May 29, 2013 at 3:29 PM, tony gair <tonyt...@gmail.com> > wrote: > > > > >

django 1.5 abstractuser / accessing information of logged on user

2013-05-30 Thread tony gair
I am using CBV / django braces for authentication. My user authorisation model inherits abstractuser and adds a few fields which are foreign keys to two other models organisation and premises. When a form initialises I want to be able to examine the details of the user logged in , look to see

Re: linking the logged in user to other models to filter query sets -( noobie )

2013-05-29 Thread tony gair
, Tom Evans wrote: > > On Wed, May 29, 2013 at 3:29 PM, tony gair <tonyt...@gmail.com> > wrote: > > > > > > I've done a basic django app with a user which contains an organisation > and > > premises foreign key inside the user model which has been inhe

linking the logged in user to other models to filter query sets -( noobie )

2013-05-29 Thread tony gair
I've done a basic django app with a user which contains an organisation and premises foreign key inside the user model which has been inherited using the features of django 1.5. I use the organisation id and premises id inside other models which I would like to present themselves providing

listing objects in a html file

2013-05-28 Thread tony gair
This file is used to print out the name of the premises with an update link , however I wanted to add a list of premises with the in_use flag set to false. Can anyone tell me what I am doing wrong? {% extends "base.html" %} {% block content %} Premises {% unusedpremises = [] %} {% for

newbie- delete confirmation

2013-05-16 Thread tony gair
I'm making a cbv with django braces I'm wanting to delete a record with a confirm form , does anyone know of an exampple to show me how to do this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

should Django groups and permissions be hard-coded or bootstrapped?

2012-10-25 Thread Tony Schmidt
I'm building an app that assumes the existence of certain groups and permissions for its workflow. For example, a "member" can log into the app and view and edit their personal data, but cannot see notes that would typically be displayed on the same screen. An "employee" can see those notes

Django and LDAP

2012-09-10 Thread Tony
Hi everybody, I am new to Django and Python, and right now, i am going through the documentation. I have an assignment at my Faculty, where i need to install Django, 389ds LDAP server (where i have to store my users) and i need to somehow connect them two, so i can auth users from LDAP when

[Django Gig - Sacramento/Bay Area, CA] Help make Django/FOSS a success for independent/local grocery retail

2012-05-25 Thread Tony Schmidt
I can read this list and the docs all I want, but there's no substitute for experienced code review and pair programming. *So we, the Sacramento Natural Foods Co-op, are seeking a (preferably local) Django guru to help bring best practices to our in-house software development. We have a small

how to emulate parallel multi-user usability testing with django and selenium/grid?

2012-04-24 Thread Tony Schmidt
I can get my Selenium tests running fine for one user/ sequentially on Django 1.4 using LiveServerTestCase, but I would like to emulate parallel multi-user testing. I don't think I need real load testing,

Re: How can I use order_by and filter at the same time? (drives me nuts..!!!)

2012-03-01 Thread Tony Kyriakides
Tom thanks again for helping :) On Thursday, March 1, 2012 3:21:41 PM UTC+2, Tony Kyriakides wrote: > > How can I use order_by and filter at the same time? (drives me > nuts..!!!) > > This is what i tried: > > from django.shortcuts import render_to_response > fro

How can I use order_by and filter at the same time? (drives me nuts..!!!)

2012-03-01 Thread Tony Kyriakides
How can I use order_by and filter at the same time? (drives me nuts..!!!) This is what i tried: from django.shortcuts import render_to_response from vidupdate.posts.models import Entry from datetime import datetime #( I even imported the date only) def entry_view(request): entries =

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
Sorry tom! Thanks a lot mate you just made my day! On Feb 28, 5:34 pm, Tom Evans wrote: > Hi. Re-read what I said: > > > 24      {% for entry in entries %} > >            ^^^ > > > 25      {{ entry.title }} > > {{ entry.posted }} {{ entry.submitter }} >

Re: Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
{% endif %} Page {{ entries.number }} of {{ entries.paginator.num_pages }}. {% if entries.has_next %} next {% endif %} On Feb 28, 5:01 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Feb 28, 2012 at 2:45

Can't get pagination to work in django.!!!

2012-02-28 Thread Tony Kyriakides
I get this error: Template error In template /home/tony/Documents/vidupdate/templates/index.html, error at line 24 Caught TypeError while rendering: 'Page' object is not iterable 14 {% else %} 15 Register 16 Login 17 {% endif %} 18 feedback 19 Contact 20 21

Template Loader Error: (It's been really frustrating till now..!)

2012-01-27 Thread Tony Kyriakides
', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Template Loader Error: Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.Loader: /home/tony/Documents/blog

Re: imagefiled don't Work

2012-01-27 Thread Tony Kyriakides
(in the terminal) python manage.py syncdb On Jan 21, 8:57 am, cha wrote: > Hello I reading this > tutorialhttps://pype.its.utexas.edu/docs/tutorial/unit6.html#answers > it's work OK But When I want improve it and add ImageField in Category > Model i have problem with

Re: how to only allow google apps auth from one domain

2012-01-10 Thread Tony Schmidt
Got it: Hacked the django-social-auth Google back-end to filter by domain. I'll see if the project wants to accept my changes as a setting. On Jan 9, 5:38 pm, Tony Schmidt <tschm...@sacfoodcoop.com> wrote: > I tried django-social-authand googleappsauth but both allow me to > authe

how to only allow google apps auth from one domain

2012-01-09 Thread Tony Schmidt
I tried django-social-auth and googleappsauth but both allow me to authenticate from any domain. Has anybody had luck setting this up with these, or any other packages? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Will template extends break the html structure?

2011-10-19 Thread Tony Guo
It's OK now.The source code is right,but,for using some Chinese character,i have to change the source file from GB2312 to UTF-8(in win7) during which something go wrong and caused such a error.I am using Ubuntu now and everything goes right. -- You received this message because you are

Will template extends break the html structure?

2011-10-19 Thread Tony Guo
Hi,everyone.I have had a strange problem on my homework .I load "index.html" template,which extends "base.html" template,in views,then access it through firefox and firebug show that the markup seems to be broke.However,if loading "base.html" directly instead of "index.html" in views,it works

Module or plugin architecture

2011-10-01 Thread Tony
Hello, I am new to Django and I have a question about module or plugin architecture. Is it possible to write a module with Django and add it to a current Django application. Thank you very much. Regards, Tony -- You received this message because you are subscribed to the Google Groups "D

Re: why can't I access a dictionary with an initial form field value from my django template?

2011-08-23 Thread Tony Schmidt
Thanks, Reinout. I wound up creating a custom "getter" filter so I could do {{ MYDICT| get:myform.somefiled.value }} - which I'm surprised isn't a built-in, actually. But I think your suggestion is a good alternative. Tony On Aug 23, 1:40 pm, Reinout van Rees <rein...@vanre

why can't I access a dictionary with an initial form field value from my django template?

2011-08-23 Thread Tony Schmidt
I thought this should be the proper syntax in my template: {{ MYDICT.myform.somefield.value }} But I get a "can't parse remainder error." Just putting {{ myform.somefield.value }} gives me "3" and {{ MYDICT. 3 }} gives me the dictionary value I want. Am I missing something? -- You received

how can I use ipdb with runserver_plus?

2011-08-04 Thread Tony Schmidt
Is this possible? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options,

Re: manytomany query problem

2011-07-18 Thread Tony
As I still haven't solved this, any suggestions would be appreciated. On Jun 26, 10:16 pm, Tony <tonyl7...@gmail.com> wrote: > Alex, > I did it your way and although it does return the intersected sets > correctly, it is not exactly what I want because I need those sets t

Re: manytomany query problem

2011-06-26 Thread Tony
, Nikhil Somaru <nsom...@gmail.com> wrote: > When you say 'filter' do you mean that you want some objects removed (i.e. > filtered), or, do you mean that you want all the A's returned to be in a > list that is sorted? > > > > > > > > > > On Fri, Jun 24, 2011

Re: manytomany query problem

2011-06-26 Thread Tony
n you say 'filter' do you mean that you want some objects removed (i.e. > filtered), or, do you mean that you want all the A's returned to be in a > list that is sorted? > > > > > > > > > > On Fri, Jun 24, 2011 at 5:55 AM, Tony <tonyl7...@gmail.com> wrot

Re: manytomany query problem

2011-06-23 Thread Tony
Nikhil Somaru <nsom...@gmail.com> wrote: > Hi Tony, > > Try this: > > q1 = A.objects.filter(B=your_b1_instance) # that gets you all A with B = > your_b1_instance > q2 = A.objects.filter(B__B=your_b2_instance) #that gets you all A with B.B = > your_b2_instance >

Re: manytomany query problem

2011-06-23 Thread Tony
ere? > > Are you defining the following structure: > > A hasMany B; > B hasMany A; > B hasMany B; > > So you want* A such that A.yourB1.yourB2 exists*? Sorry for the notation. > > > > On Thu, Jun 23, 2011 at 12:03 PM, Tony <tonyl7...@gmail.com> wrote: > &g

manytomany query problem

2011-06-23 Thread Tony
I have two models with a manytomany through relation (A and B). B has a self referential manytomany relation (a userprofile model). How could I filter objects of model B per each relationship with model A? So lets say 3 arbitrary model A objects have 20 model B object relations each. I want to

unique identifier to distinguish an instance

2011-04-06 Thread Tony
so I have two models, A and B. B has a foreignkey relationship in it from A (To be clear because I know I dont explain it that well, one A has many Bs). for each group of Bs each A is connected with, I want there to be a way to mark one of the Bs as unique from the rest of them. I added in an

Re: model manager and request

2011-03-30 Thread Tony
yeah, shawn said the exact dilemma I am having. I am working with a plugged in app and dont want to change its code and mess with its views and create a new fork, it just seems like small thing to make a change for (and I would probably mess something else up). On Mar 30, 11:58 am, Shawn

model manager and request

2011-03-30 Thread Tony
Is there a way to use the "request.user" attributes in a custom model manager? So I could filter by certain attributes the current logged in user has? This is the preferable way I would like to filter the objects the user sees, so if there is a way, I would appreciate the help. If there is no

Re: embedding tag in another tag

2011-03-23 Thread Tony
rom my BlackBerry wireless device from MTN > > > > > > > > -Original Message- > From: Tony <tonyl7...@gmail.com> > > Sender: django-users@googlegroups.com > Date: Wed, 23 Mar 2011 13:06:13 > To: Django users<django-users@googlegroups.com> > Reply-To: dja

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Tony
<kmtra...@gmail.com> wrote: > On Wed, Mar 23, 2011 at 3:26 PM, Tony <tonyl7...@gmail.com> wrote: > > It uses my CMS_PAGE_MEDIA_PATH, which is 'C:\Users\Tony\Documents\My > > Music\1'.  Maybe this is the problem, but I dont know how to > > explicitely tell Django t

embedding tag in another tag

2011-03-23 Thread Tony
I have two tags, and I am trying to put together a dynamic form action url. For the url to come together lke I want, one would be embedded in the other, but when i try to do it this way, I get a parsing error. I've also tried using javascript and variables but the tags dont read the variable

Re: suspiciousoperation with file upload on django-cms

2011-03-23 Thread Tony
It uses my CMS_PAGE_MEDIA_PATH, which is 'C:\Users\Tony\Documents\My Music\1'. Maybe this is the problem, but I dont know how to explicitely tell Django to use my MEDIA_ROOT. On Mar 22, 8:45 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Mar 22, 2011 at 5:12 PM, Tony <tonyl7.

suspiciousoperation with file upload on django-cms

2011-03-22 Thread Tony
o\core\files\storage.py" in path 212. raise SuspiciousOperation("Attempted access to '%s' denied." % name) Exception Type: SuspiciousOperation at /admin/cms/page/1/edit-plugin/ 13/ Exception Value: Attempted access to 'C:\Users\Tony\Documents\My Music \1\Penguins.jpg'

  1   2   >