Re: Best Django Rest Framework Tutorial??????

2020-06-10 Thread Jack Lin
DOCUMENTATION 在 2020年6月11日 於 上午2:58:42, chaitanya orakala (chaitu.orak...@gmail.com) 寫下: can anyone please respond ?? On Wed, Jun 10, 2020 at 9:51 AM Sai wrote: > Hi djangoians, > I want to learn django rest framework, may i please know which is best > resource in online market or

Re: Study and project partner(s) needed

2020-02-16 Thread Jack Lin
Since no one is gathering everyone, I created a Django Learning Group on Telegram If anyone is interested, just click the link and join us. Akorede Habeebullah於 2020年2月15日星期六 UTC+8上午12時16分13秒寫道: > > Hi guys, > > I've been learning Django on a solo

Re: Study and project partner(s) needed

2020-02-14 Thread Jack Lin
.com/ebbsanchez/django-gitlog> If anyone have no idea how to cooperate or help. Feel free to ask, I’ll teach you. Jack Sanchez 在 2020年2月15日 於 下午1:34:06, paarull shukla (shukla.paarull...@gmail.com) 寫下: Heloo satvik I also started learn jango few days back.. If we face anyproblem can we discu

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Jack Lin
on the dynamic aspect rather than its aesthetic for a faster result... On Thu, 23 Jan 2020, 12:41 Jack Lin, wrote: > > > Hi Django users, I'm Jack who currently learning Django everyday > <http://afternoon-beach-38581.herokuapp.com/> > My practice projects is little tiny functi

Got an interview, need some idea for projects.

2020-01-22 Thread Jack Lin
Hi Django users, I'm Jack who currently learning Django everyday <http://afternoon-beach-38581.herokuapp.com/> My practice projects is little tiny function for now. however I got an interview yesterday which is an Django Web Developer in Stock Company. <https://www.cakeresume.com/

Re: DjangoEveryDay. My practice website!

2020-01-21 Thread Jack Lin
w or stack — of learning in CS. On Mon, Jan 20, 2020 at 1:52 AM Jack Lin wrote: > I’m not sure what this gonna be in the future. I think I’m just exlpore > the way. > I may want to make this reusable for the newbie in the future and make the > community better. > Open to any ideas and cont

Re: DjangoEveryDay. My practice website!

2020-01-21 Thread Jack Lin
Practice Zone is Django too ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar <http://about.me/maninder.s.kumar?promo=email_sig> On Sun, Jan 19, 2020 at 4:46 PM Jack Lin wrote: > Hi everyone. I'm doing #DjangoEveryday Challenge to myself. > I set a goal for ever

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
I’m not sure what this gonna be in the future. I think I’m just exlpore the way. I may want to make this reusable for the newbie in the future and make the community better. Open to any ideas and contribution. 在 2020年1月20日 於 下午2:49:48, Jack Lin (tkic...@gmail.com) 寫下: Oh yes, this is all

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
, Jack Lin wrote: > Hi everyone. I'm doing #DjangoEveryday Challenge to myself. > I set a goal for everyday and try to accomplish it. So I got practice and > progress everyday :) > > I'm doing this for preparation of my resume. I'm looking for Django Job in > Taiwan but CS is not

DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
guys! btw, I do a bit of develop journal on my Linkedin, too. so if you are interested on my progression, you can follow me on Linkedin! There is the website: Jack's Practice Zone <https://afternoon-beach-38581.herokuapp.com> and this is my Linkedin <https://www.linkedin.com/in/jac

Re: How to create form to show user input and return results from DB

2020-01-04 Thread victor jack
Hi Nina , just read your write up For some form of clarification to your Confusion I’ll just answer the ones I can For the database , don’t make two different ones , one database with two tables 2000 and 2010 will do just fine , just query then right. For the forms it is required to use

Re: FieldError at / Django models how to reslove this issue....

2019-12-19 Thread Jack Lin
FYI, you can check this documentation <https://docs.djangoproject.com/en/3.0/topics/db/queries/#field-lookups-intro> for double underscore in Django. -- Jack Lin 在 2019年12月20日 於 上午1:28:29, Simon Charette (charett...@gmail.com) 寫下: You are missing an underscore here. It

Greeting, introduce myself & wondering if one read all documentation.

2019-12-17 Thread Jack Lin
Hi all. I'm a new self-taught developer. Just decided to make backend development especially Django to be my full time career. I'm new to programming.. at least i just create my own ugly website and never involve in big projects or open-sources. I read a lot of tutorial and got the basic ideas

Serving non-referenced static files

2019-10-29 Thread Jack Sundberg
static/ This isn't working for me though, and I think I'm using the static() function incorrectly. Could someone offer some guidance on how to set this up for development testing? Thanks in advance, Jack -- You received this message because you are subscribed to the Google Groups "Django u

Re: Complete book

2019-10-22 Thread victor jack
Thanks a lot for sharing > On 19 Oct 2019, at 15:09, ISAAC NELSON S.B. KARGBO > wrote: > >  > Try this one out > >> On Sat, Oct 19, 2019, 13:47 Md Nayem Tushar wrote: >> Have any easy and properly complete book in django? pls ans me >> -- >> You received this message because you are

Re: Creating an app that generates static files

2019-10-18 Thread Jack Sundberg
them as well. > > On Fri, 18 Oct 2019, 14:29 vineet daniel, > wrote: > >> Dont forget inode and files limit if you are creating too many files real >> quickly. >> >> On Fri, 18 Oct 2019, 13:15 James Gutu, > >> wrote: >> >>> Jack, >>>

Re: Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
when sessions data hits a certain threshold, I can call django.contrib.sessions.clearsessions which will delete expired session entries in the database > pull out which entries were deleted and then delete the corresponding tmp/[session_id] directory Is that the best way to do it? -Jack

Re: Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
a *.gltf and *.bin) - the app serves the html template with the generated static files embedded inside the Is this helpful? Also thank you for the quick response. I really appreciate the help. -Jack On Thursday, October 17, 2019 at 10:56:56 AM UTC-4, vineet daniel wrote: > > This problem can

Creating an app that generates static files

2019-10-17 Thread Jack Sundberg
. -Jack -- 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 web vi

python manage.py runserver error

2019-07-13 Thread Jack Bergemann
(venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner self.run() File

I need adding records within another model

2019-03-13 Thread Jack Gonzales
Hi everyone, i have two classes in my model.py, this system is for registering the payments of an account, for instance, a client is lent 1000 dollars and that account has an ID, each loan has an ID and what i want is when the client makes the payment of his fees i can register each ammount

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread victor jack
10:51:13 AM UTC+5:30, victor jack wrote: >> >> Will check it out . Thanks for your input very much appreciated >> >> On Tue, 9 Oct 2018 6:17 AM Manjunath, wrote: >> >>> Hi Victor, >>> Are you sure book.author.pk has value? >>> can you send t

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
Your application'software URL is not mapped correctly , from the error page it is only the admin that can be loaded . On Tue, 9 Oct 2018 6:40 AM Pradeep Singh, wrote: > > > On Mon, 8 Oct 2018 at 22:30, victor jack wrote: > >> screenshot of the error message Singh will be he

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
pk has value? >>>> can you send the model definition of Book & Author to verify? >>>> Or you can verify yourself by using django Shell. >>>> >>>> >>>> On Tuesday, October 9, 2018 at 12:52:28 AM UTC+5:30, victor jack

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
> > > On Tuesday, October 9, 2018 at 12:52:28 AM UTC+5:30, victor jack wrote: >> >> >> Thanks Manjunath, i will post two screen shots of the templates >> On Saturday, October 6, 2018 at 7:25:50 AM UTC+1, Manjunath wrote: >>> >>> Seems like you are

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread victor jack
:06:08 AM UTC+5:30, victor jack wrote: >> >> Hello guys, i am in dire need of any django user's knowledge, i have this >> issue that has been bugging me literally in my codebase. I want to render a >> html page but the error keeps on coming, i have tried but to

Re: How can i modify the base_site.html Template?

2018-09-04 Thread victor jack
*Ok i see, you create an admin folder in your template folder then create a base_site.html and an index. html file , these file will contain your custom feature ,then when you runserver the new admin site will be rendered from there(admin ) folder. I hope this helps.* On Mon, Sep 3, 2018 at 7:58

Re: How can i modify the base_site.html Template?

2018-09-03 Thread victor jack
Do u want to customise the admin page to be different from the default one django provides? On Mon, 3 Sep 2018 8:04 AM , wrote: > Hello, i want to change de title and the default text in the header of the > Django-Admin site but i don´t know do that. > > -- > You received this message

Re: text editor

2018-09-02 Thread victor jack
More like vim and vs code are the best editors On Sun, 2 Sep 2018 06:51 RONAK JAIN, wrote: > Atom is best editor. > > On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, > wrote: > >> >> Hi to all, >> Which is the best editor for django framework in Ubuntu os >> 18.04 >> >> Get Outlook

Re: How can I get back my English pages (multi-lingual site updated from en to en-us)

2018-09-02 Thread victor jack
https://docs.djangoproject.com/en/2.0/topics/i18n/ check this out, but i don't think changing language_code from en to en-us is the problem. On Sat, Sep 1, 2018 at 2:31 PM Leo Treasure wrote: > Hello, > > I've needed to update the settings.py file LANGUAGE_CODE = 'en' to 'en-us' > which has

Re: creating virtualenv for django but i get import zlib module error what could be the problem

2018-09-02 Thread victor jack
from the error message , i think you need to install the package zlib and import it. On Sat, Sep 1, 2018 at 2:31 PM Lutalo Bbosa joseph wrote: > raceback (most recent call last): > File "/usr/local/bin/virtualenv", line 9, in > load_entry_point('virtualenv==15.0.1', 'console_scripts', >

Re: __init__.py Won't Upload To Github Respository

2018-09-02 Thread victor jack
Thanks for the link stephen , really much appreciated. On Sat, Sep 1, 2018 at 7:59 PM Stephen J. Butler wrote: > GitHub has an excellent set of gitignore files. My first commit to a > project is always one of these: > > https://github.com/github/gitignore > > In particular: >

Re: django website hosting

2018-08-27 Thread victor jack
Check out the documentation on digital ocean On Sat, 25 Aug 2018 15:36 ERICK OMONDI AYARA, wrote: > I would like to host a django project onto a web domain but cant seem to > get around it. i cant also find the python setup on the SOFTWARE section of > my file manager. Is there a way to do

Re: Intregration Of on form submit user recive a sms in his phone

2018-07-31 Thread Aaron Jack
I use this company: https://www.reach-interactive.com/ On Tuesday, 31 July 2018 14:32:02 UTC+1, im...@wsegames.com wrote: > > How to impement this feature Intregration Of on form submit user recive a > sms in his phone. > -- You received this message because you are subscribed to the Google

Re: Converting GeometryField to MultiPolygon using GeoDjango?

2018-06-13 Thread Jack
See original question on Stack Overflow for better formating. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Converting GeometryField to MultiPolygon using GeoDjango?

2018-06-13 Thread Jack
I am trying to add a bunch of school boundary files into the database. The boundary files are inconsistent. They are processed by `DataSource` as either `Polygon`, `MultiPolygon`, or `GeometryCollection`. Converting `Polygon` into `MultiPolygon` is fairly simple using this solution

DJANGO NOT FOUND

2017-12-23 Thread Jack
Hi, i've installed on my ubuntu 16.04 LTS python3.6 and django but django i have installed with pip3 and usign virtualenv, but it is ok by console, the problem is in eclipse, i installed python, it is OK, but at the moment of creating a django project, it drops a message, django not found, i've

Single-page app with dynamic filtering - 2 options to proceed

2017-12-18 Thread Jack
I am building a real estate listings map, which dynamically refreshes its filter whenever the user moves the map. The page never refreshes when a change is made. Think Zillow/Trulia

Django - Paginate with another GET request; not working with just pagination page number

2017-12-06 Thread Jack
I'm building a page with pagination and a filter form (2 GET requests). If the URL includes both pagination and filter results, something like `/questions/?page=2_questions=on`, it works fine. It also works if it just has filter results, something like `/questions/?all_questions=on`. However

Re: Seeking design guidance on a Team model where a user sends invitation to other users to join the team

2017-11-27 Thread Jack
tml( > "Message sent!"); > setTimeout(function () { > getThreadComments(serverResponse_data.split(':')[1]); // this reloads > the messages; you probably don't need > }, 1500); > }, > error: function (serverResponse_data) { > console.log('error:' + JSON.stringify(serverResp

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Jack Zhang
No I am not familiar with Ajax. I only know a bit of JavaScript. ᐧ On Thu, Nov 9, 2017 at 6:19 PM, Adam Simon <add.simm.8...@gmail.com> wrote: > > Hi Jack. I will write some more details when I get home. Have you ever > used Ajax? > > On Thu, Nov 9, 2017 at 3:14 PM Jack &

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Jack
Ok I'm very stuck. Thought very hard about it but can't see how I can add a hidden field into the HTML, and relay the specified instance of the hidden field back to the views... or am I completely off about something? Also in regards to the looped form's. If you look at my original code, I

Re: Django - Pass a model instance specified by template tags to the view

2017-11-09 Thread Jack
. On Wednesday, November 8, 2017 at 6:24:29 PM UTC-5, Adam wrote: > > > On Wed, Nov 8, 2017 at 1:38 PM Jack <valac...@gmail.com > > wrote: > >> On my HTML page, I have a list of Agent's (Agent is my custom User >> model). Beside each agent is a

Django - Pass a model instance specified by template tags to the view

2017-11-08 Thread Jack
On my HTML page, I have a list of Agent's (Agent is my custom User model). Beside each agent is a 'Send Invite' button. To create a `TeamInvitation`, I need to specify which Agent is attached to its `receiver_agent` field (a OneToOneField with Agent) There are multiple Agents displayed on

Re: Seeking design guidance on a Team model where a user sends invitation to other users to join the team

2017-11-05 Thread Jack
, November 4, 2017 at 11:49:19 PM UTC-4, Shree Kant Bohra wrote: > > Check out django-invitations app, which does exactly what you need - > https://github.com/bee-keeper/django-invitations > > > -- > Shree Kant Bohra > Co-founder > Geekybuddha Technologies > > > >

Seeking design guidance on a Team model where a user sends invitation to other users to join the team

2017-11-04 Thread Jack
I have a model called *Team*, which has a ForeignKey relationship with *User* (a team can have many users, but a user can only be part of one team). A user can create a team, and that user will automatically become a *Team Leader* (a group, not a model). The team leader can query the database

MultipleChoiceField is being displayed as a string instead of a list

2017-10-29 Thread Jack
I have a MultipleChoiceField forms field which shows up in the database like this . It seems to have been converted to a string in the database, because when I try to display it with a 'for property in property_type' statement in the HTML, it shows up like

Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Jack
. Thanks Daniel! On Sunday, October 29, 2017 at 7:59:25 AM UTC-4, Daniel Roseman wrote: > > On Monday, 23 October 2017 16:59:36 UTC+1, Jack wrote: >> >> This is a semi-long question. Please let me know wherever I make a >> mistake. >> >> I'm building a se

Re: Passing 3 user inputs as argument in url, for a search form

2017-10-26 Thread Jack
, 2017 at 7:50:58 PM UTC-4, James Schneider wrote: > > > > On Wed, Oct 25, 2017 at 11:29 AM, Jack <valac...@gmail.com > > wrote: > >> I am building a search form where the user inputs 3 values on a form, and >> I search the database for all records that match the

MultipleChoiceField records down choices as a list, but CharField converts them to a list?

2017-10-26 Thread Jack
I have a model field for choosing multiple options. Here is the code for models and forms: *models.py:* CONDO_APARTMENT = 'Condo Apartment' DETACHED_HOUSE = 'Detached House' SEMI_DETACHED = 'Semi-detached' TOWNHOUSE = 'Townhouse' PROPERTY_TYPE = (

Passing 3 user inputs as argument in url, for a search form

2017-10-25 Thread Jack
I am building a search form where the user inputs 3 values on a form, and I search the database for all records that match the 3 inputs. Right now I am stuck on the user input part. If you look at my *urls.py*, you will see that I tried to put 3 keywords arguments in there. Then I tried to

Re: Automatically assign model instance to the user who created it. And only that user can edit/delete the instance.

2017-10-25 Thread Jack
r) >>> if form.is_valid(): >>> data = form.save(commit=False) >>> data.user = request.user >>> data.save() >>> messages.add_message(request, messages.SUCCESS, >>> self.success_message) >&

Re: Automatically assign model instance to the user who created it. And only that user can edit/delete the instance.

2017-10-24 Thread Jack Zhang
m = Dog_Form(request.POST) > if form.is_valid(): > form_save = form.save(commit=False) > form_save.user = request.user # user is logged in > form.save() > > > On Tue, Oct 24, 2017 at 7:37 PM, Jack Zhang <valac...@gmail.com > > wrote: > >> Let's

Automatically assign model instance to the user who created it. And only that user can edit/delete the instance.

2017-10-24 Thread Jack Zhang
Let's say I have a model called 'Dogs'. Users can create instances of Dogs. Let's say we have a user called User1. I have 2 questions: 1. When User1 creates an instance of Dogs, how do I automatically assign that instance to User1? I tried using a model field like this but it doesn't pick

Re: Generating a unique 10 digit ID for each model instance

2017-10-23 Thread Jack Zhang
, 2017 at 4:32:28 AM UTC-4, James Schneider wrote: > > > > On Oct 22, 2017 8:52 AM, "Jack Zhang" <valac...@gmail.com > > wrote: > > Let's say I have a model called 'Dogs'. Users can create instances of > Dogs. For every Dogs instance that is created,

Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-23 Thread Jack Zhang
This is a semi-long question. Please let me know wherever I make a mistake. I'm building a search form with 4 required choices, 1 of the choices is a CharField with a max_length of 3. The other 3 choices are ChoiceField's. Here is a picture of what the search form looks like:

Re: Generating a unique 10 digit ID for each model instance

2017-10-22 Thread Jack Zhang
tabase usually handles this and you don't need to worry, there are > many corner cases and DB systems are able to handle them > > But they won't look like whatever format you would like, usually it is > just a number > > Why do you need the IDs to look like that? > > On Oct

Re: Generating a unique 10 digit ID for each model instance

2017-10-22 Thread Jack Zhang
D field. See > https://docs.djangoproject.com/en/1.11/topics/signals/ > > Best regards, > > Andréas > > 2017-10-22 17:52 GMT+02:00 Jack Zhang <valac...@gmail.com >: > >> Let's say I have a model called 'Dogs'. Users can create instances of >>

Generating a unique 10 digit ID for each model instance

2017-10-22 Thread Jack Zhang
Let's say I have a model called 'Dogs'. Users can create instances of Dogs. For every Dogs instance that is created, I want to assign a globally unique ID to it. The ID will be 3 capitalized letters followed by 7 numbers. E.g. ABC1234567, POZ2930193 What is the easiest way to go about

Django 1.11 - Best Datepicker to use?

2017-10-21 Thread Jack Zhang
I'm looking for a datepicker widget to use for a DateTime form field. I searched around and most of the answers were old Stack Overflow posts from 2011 about hacking the calendar datepicker widget from Django's Admin. The information about that was inconclusive and I couldn't get mine to

Getting my head around ForeignKey, One-To-Many and Many-To-Many.

2017-09-13 Thread Jack Razors
I am creating a mindmap visio-like editor website using d3js and a bunch of custom javascript. Rather than the schema/stencils being populated by static JSON files, I wanted to create an administration area to edit the schema without requiring JSON kung-fu skills and serve the dynamically

Re: Need help modifying form on intermediate page of admin action

2017-07-29 Thread Jack Twilley
. Jack. On Saturday, July 29, 2017 at 10:24:02 PM UTC-7, mark wrote: > > You might find one of these helpful - > > https://github.com/digi604/django-smart-selects > > https://github.com/yourlabs/django-autocomplete-light > > Basically, you want a "chained select&quo

Need help modifying form on intermediate page of admin action

2017-07-29 Thread Jack Twilley
{% for jar in jars %} {{ jar }} {% endfor %} {{ move_multiple_jars_form }} {% endblock %} Thank you in advance for any help you may be able to give! Jack. -- You received this message because you are subscribed to

Re: Getting 500 error on ASO

2015-12-13 Thread Jack Maxwell
I've got the same problem to configure my Shared Host on QHoster, using fastCGI. I didn't find a valid tutorial so far. my config: /home/username/ | /public_html/.htaccess | /index.fcgi |-/mydjangoVirtualEnv

Transform all Django exceptions to JSON?

2015-04-16 Thread jack
Hello, I use django rest framework to make API server. DRF catches some Django exceptions and transforms them in JSON. However some exceptions, like 404, are still returned as Django pages (at least it works that way on my machine). How can I wrap all exceptions in JSON from any library? I'm

django 1.7 migration generates wrong column name for foreign key to a one-to-one model

2015-02-10 Thread Jack Peng
rofile" ("id") DEFERRABLE INITIALLY DEFERRED Traceback (most recent call last): File "/home/jack/Envs/envp1/lib/python3.4/site-packages/django/db/backends/utils.py", line 66, in execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: column "id&

Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
Thank you :) On Friday, March 7, 2014 12:13:26 AM UTC+8, Felipe Coelho wrote: > > 2014-03-06 11:45 GMT-03:00 Jack Yan <luce...@gmail.com >: > >> in the tutorial and section "Authenticating Users": >> https://docs.djangoproject.com/en/1.6/topics/auth/default/ &

"Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
in the tutorial and section "Authenticating Users": https://docs.djangoproject.com/en/1.6/topics/auth/default/ where can I put code: from django.contrib.auth import authenticateuser = authenticate(username='john', password='secret')if user is not None: # the password verified for the user

Hiring Django developers

2013-05-16 Thread Jack Hanna
at j...@fintoo.com , attach your resume and put "Django developer & your location" in the subject line. If you have additional questions feel free to message me at jha...@fintoo.com. Regards, Jack Hanna -- You received this message because you are subscribed to the Google Gro

Does python(django) have an official database driver to access SQLFire?

2012-01-29 Thread Jack
Hello, I have a question on Python(django) Does python(django) have an official database driver to access SQLFire? Or is there any roadmap to deliver an official database driver? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Doing a relationship lookup from within a model.

2011-10-18 Thread Jack Morgan
I've got 2 tables that are related to each other. Orders and History. Inside the History table is the 'status' column. Like so.. class Orders(models.Model): 'order info' class History(models.Model): timestamp = models.DateTimeField(auto_add_now = True) order = models.ForeignKey(Orders)

Return a CSV and a template in the same response.

2011-10-03 Thread Jack
Hey gang, I am trying to use a response object to serve a dynamically created CSV. I have that part working perfectly but I'd like to display a page afterwards with a summary of the data. Is there a good way to do this? I tired added the rendered template to the httpresponse object after I

Re: Getting a count of a RawQuerySet object

2011-09-21 Thread Jack Morgan
you have a model Utility, you can do > Utility.objects.all().count() > Hope that helps. > Regards. > Sent from my BlackBerry wireless device from MTN > > -Original Message- > From: Jack <jackofseat...@gmail.com> > Sender: django-users@googlegroups.com > Date: We

Getting a count of a RawQuerySet object

2011-09-21 Thread Jack
Hello everyone, I'm quite new to django and python in general so I'm sure there's just something I missed in my searching to answer this. But... Is there a way to count the number of results returned in the RawQuerySet option? I've tried the len() function and I've search the django

can django be used in destop application?

2011-08-23 Thread smith jack
i mean not use django for web site development, but for desktop application, it seems its orm can be used in destop application, isn't it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: why i cannot load css from django lib?

2011-08-21 Thread smith jack
der allow,deny > > Allow from all > > > > #2 slashs > > SetHandler None > > > > > > SetHandler None > > > > 2011/8/21 smith jack <thinke...@gmail.com> >> >> face a strange problem, now i am using django.contrib.admin modu

why i cannot load css from django lib?

2011-08-20 Thread smith jack
face a strange problem, now i am using django.contrib.admin module with its default page, but i cannot load css code now, so the web page is ugly what's wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

How to make pydev suport django specific syntax?

2011-08-19 Thread smith jack
for example, django have some dynamic mechanism, the code can be processed wel by django, but pydev will just simply show some error message, how to make pydev deal with such dynamics? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

How to change the schma of database using python manage.py syncdb?

2011-08-18 Thread smith jack
for example at first i have a model named url, the code is as follows: class url(models.Model): link=models.URLField(unique=True) then i change this class as follows: class url(models.Model): link=models.URLField(unique=True) hits=models.IntegerField() at last, i use command

Multiple Django/Python developer Positions- Atlanta, GA

2010-10-29 Thread Jack
Location: Atlanta, GA Interview Process: Phone and Face to Face Compensation: 60k to 100k Please reply if you or someone you know if looking for a job as a expert Python or Django Developer. only US Citizens or Greencard holders need apply Thanks! Jack -- You received this message because you

Re: database schemas support for postgresql psycopg2

2009-05-29 Thread Jack Orenstein
oes anybody have a solution for using django with more than one > schema in postgresql? I don't use the django ORM, but running the postgres command 'set search_path = some_schema,public' works for me. This sets the schema search path only for the connection on w

Serving static content

2009-03-30 Thread Jack Orenstein
mod_python? 3) Why exactly is the builtin django method insecure? Thanks for any help. Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Problem with Field errors

2009-03-29 Thread Jack Orenstein
On Mar 29, 2009, at 9:35 AM, Matthew Somerville wrote: > > Jack Orenstein wrote: >> On Mar 28, 2009, at 12:26 PM, Daniel Roseman wrote: >> >>> On Mar 28, 4:14 pm, Jack Orenstein <j...@geophile.com> wrote: >>>> My application needs to validate data fro

Re: Problem with Field errors

2009-03-28 Thread Jack Orenstein
On Mar 28, 2009, at 12:26 PM, Daniel Roseman wrote: > > On Mar 28, 4:14 pm, Jack Orenstein <j...@geophile.com> wrote: >> My application needs to validate data from a from beyond the >> validation of Fields done by django. So in my form handler, I check >> Form.is_v

Problem with Field errors

2009-03-28 Thread Jack Orenstein
the render_to_response call containing the form. I'm guessing that this has something to do with the fact that the form already passed the is_valid check. How can I force the form to become "invalid" again, once my own validation detects errors? Jack

Problem getting application to run with Apache2 and wsgi

2009-03-20 Thread Jack Orenstein
match any of these. What am I doing wrong? Jack Orenstein --~--~-~--~~~---~--~~ 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 unsubsc

Re: Location of files that are part of my application

2009-03-03 Thread Jack Orenstein
discover the context to specify an absolute path. Jack On Mar 3, 2009, at 4:58 PM, Briel wrote: > > Django makes python aware of your app folder when you install the app > so you can just do: > > from appname.resources.filename import function > > That should w

Location of files that are part of my application

2009-03-03 Thread Jack Orenstein
be somewhere under the application directory. Suppose I put them in APPLICATION_NAME/resources -- how would I then refer to these files? I obviously don't want to code an absolute path into my application. Jack --~--~-~--~~~---~--~~ You received this message

Re: Customizing HTML

2009-02-26 Thread Jack Orenstein
On Feb 26, 2009, at 10:04 PM, Alex Gaynor wrote: > > > On Thu, Feb 26, 2009 at 9:56 PM, Jack Orenstein <j...@geophile.com> > wrote: > > > value="m" name="gender" /> male > value="f" name="gender" /> female >

Re: Customizing HTML

2009-02-26 Thread Jack Orenstein
On Feb 26, 2009, at 9:44 PM, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 9:42 PM, Jack Orenstein <j...@geophile.com> > wrote: > > Suggestion: Instead of hardwiring formatting into Django, allow > attributes to specify formatting. E.g., here is the minimal HTM

Customizing HTML

2009-02-26 Thread Jack Orenstein
RadioFieldRendered does, but I could also substitute my own. Jack Orenstein --~--~-~--~~~---~--~~ 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@google

Django database connections

2009-02-14 Thread Jack Orenstein
o a pool? Can the pool be configured, (e.g. to set the postgres search_path)? Sorry to ask such basic questions, but I've been unable to find this information documented. Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are

Adding fields to model objects that don't correspond to database state

2009-02-08 Thread Jack Orenstein
(models.Model) ... class Foo(FooBase) but couldn't get that to work. How can I add a field to the Foo class that doesn't come from the database? Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Integrating raw SQL and model objects

2009-02-03 Thread Jack Orenstein
value > (not the referred-to instance). For example, with a ForeignKey field > called "foo", you can create a model with foo_id=6 or whatever, to set > the appropriate element. Excellent, thanks. Jack --~--~-~--~~~---~--~~ You received t

Integrating raw SQL and model objects

2009-02-02 Thread Jack Orenstein
of model objects difficult. I must be doing something wrong -- forcing creation of the related objects seems wasteful, especially as it could propagate, (if the referenced object has its own FKs). Jack Orenstein --~--~-~--~~~---~--~~ You received this message because

Re: Users getting logged out/cookie issues?

2008-05-30 Thread Jack M.
I'm fairly new to django, and I don't know it's intricacies very well, but common sense says: 1. Are they changing domains? Maybe logging in on mydomain.com and being redirected to www.mydomain.com ? 2. Are they hopping IP addresses in the middle of their session? Common for larger

Re: i18n issues.

2008-05-30 Thread Jack M.
Holy crap I'm an idiot. Thanks, Ramiro, you hit the nail on the head. I've been using sp for spanish for so long I completely spaced that it is incorrect usage. Once I switched to es everything worked. Another one chalked up to PEBKAC. Thanks, -Jack On May 29, 3:54 pm, "Ramiro Mo

i18n issues.

2008-05-29 Thread Jack M.
Hello, all. Forgive me as I'm still fairly new to django, but I'm having some issues getting i18n running, and I can't seem to find any help in the online docs. I've read chapter 18 (i18n) of djangobook.com, and chapter 10 relating to RequestContext. I've also read the docs on

Re: Database Migration Question

2008-05-06 Thread jack
who was willing and capable of tackling this task. Jack On May 5, 9:34 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 11:57 AM, jack <[EMAIL PROTECTED]> wrote: > > >  Are there any Python/Django methods that represent generic datab

Database Migration Question

2008-05-05 Thread jack
create my own migrations as custom Views. I could invoke these via the web as well after having copied my latest code to my production server. If these methods do not exist, how difficult would it be to create them? Jack --~--~-~--~~~---~--~~ You received

  1   2   >