Re: Django Newbie - Tutorial Recommendations?

2016-03-18 Thread Stanislav Vasko
Hello, i found very usefull general tutorial at Django site: https://docs.djangoproject.com/en/1.9/intro/tutorial01/ But you can try DjangoGirls (dont worry, its not just for girls): http://tutorial.djangogirls.org Good Luck! -- You received this message because you are subscribed to the Goo

Re: Guidelines For A Newbie

2016-01-04 Thread Andreas Kuhne
Hi Jay, What I would recommend is that you go throught the django tutorials and just "do" the js parts regardless of what they say - you will then get a bit of understanding for the django MVC concept and also how the django backend works and what goes where in django. The other issues you are ha

Re: Guidelines For A Newbie

2016-01-04 Thread Razvan Stefanescu
Dear Jai, I would focus now on Django tutorial and learning Python. You can build a simple web app without JavaScript knowledge, and learning a lot of things at the same time will be quite confusing. Regards, Razvan Stefanescu On Monday, January 4, 2016 at 12:30:11 PM UTC+2, Jai Goyal wrote: >

Re: Guidelines For A Newbie

2016-01-04 Thread Jai Goyal
thanks a lot for replying. it matters to me alot. actually i know html/css and basics of web. now i have done django tutorial01 and created a basic, very basic website that contained a form. now my PROBLEM is i dont know js , bootstrap and and concepts of backend in django. which is why i am havi

Re: Guidelines For A Newbie

2016-01-03 Thread Avraham Serour
1 - learn django if you already know python start with the django tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial01/ if you don't know python so well I recommend http://www.learnpython.org/ after that if you still don't know the path to take feel free to ask again on how to continue

Guidelines For A Newbie

2016-01-03 Thread Jai Goyal
Hello All, Greetings of New Year !! I wanted to ask that i have just started web development and i wanted to learn django in deep by making a full dynamic website. What Should Be the path which i should follow i.e. what are the prerequisites which i have to fulfill to become a full stack Django

Re: [newbie] import error after restart (virtualenv)

2015-09-20 Thread Vijay Khemlani
Aren't tests supposed to run with "python manage.py test lists"? On Fri, Sep 18, 2015 at 8:55 PM, David wrote: > Dear Django experts, > > I am reading through Harry Percival's "Test-Driven Development with > Python". > > As I finished chapter 3 yesterday, I was fully on track, perfectly > aligne

[newbie] import error after restart (virtualenv)

2015-09-18 Thread David
Dear Django experts, I am reading through Harry Percival's "Test-Driven Development with Python". As I finished chapter 3 yesterday, I was fully on track, perfectly aligned with the book. Today I restarted my computer, activated the virtualenv in question -- and get an error message that was not

Re: Newbie

2015-08-02 Thread Sergiy Khohlov
Welcome aboard 2 серп. 2015 16:38 "Matthew Yankey" пише: > Hi, matthew here. > > I just started reading about django. hope to learn from this group as well. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Newbie

2015-08-02 Thread Matthew Yankey
Hi, matthew here. I just started reading about django. hope to learn from this group as well. Thanks -- 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-use

Re: Newbie: Saving User and UserProfle from same template

2015-08-02 Thread sarfaraz ahmed
It worked for me!! Please review my code... and let me know if I have done everything correct...!! On Sun, Aug 2, 2015 at 12:25 PM, sarfaraz ahmed wrote: > Changed the edit_user to following. it works fine except... newly added > field date_of_birth does not load data. > Please take a look a

Re: Newbie: Saving User and UserProfle from same template

2015-08-01 Thread sarfaraz ahmed
Changed the edit_user to following. it works fine except... newly added field date_of_birth does not load data. Please take a look at link below http://pastebin.com/nXpiLMJp Regards, Sarfar

Newbie: Saving User and UserProfle from same template

2015-08-01 Thread sarfaraz ahmed
Hello Team, I have extending the user with userprofile. I want to change first_name, last_name and sex from userprofile using one template. I have defined form and models. Please hellp this is code for edit_user view, model for user profile and model forms code

Re: newbie question

2015-03-20 Thread Tom Lockhart
> The Python functions I wish to execute use numpy and other Python packages I > would like like to convert to JavaScript. As has been suggested, the tutorial is where you want to start. By the time you finish part 4 you will have a good idea how to bypass references to a data model and use for

Re: newbie question

2015-03-20 Thread Vincent Davis
On Friday, March 20, 2015, john wrote: > Maybe another way to reply to your question is to break down how it would > work normally. > There are two sides of this question - the server side and the client side. > > In general client side stuff is done in javascript. > Server side requests are don

Re: newbie question

2015-03-20 Thread john
Maybe another way to reply to your question is to break down how it would work normally. There are two sides of this question - the server side and the client side. In general client side stuff is done in javascript. Server side requests are done in python. So you have to decide where you want

Re: newbie question

2015-03-20 Thread VMD
On Friday, March 20, 2015 at 11:09:57 AM UTC-6, David Gleba wrote: > > > You don't actually need python or django to get form input and do > something with the input. > My function is not as simple as adding two numbers and for various reasons I am not interested in using Javascript. I just use

Re: newbie question

2015-03-20 Thread john
I'm not aware that you can use javascript in views.py. In the Template - I believe you mean. Johnf On 03/20/2015 09:35 AM, David Gleba wrote: Also, I am not an expert in Django yet, but I think you can use html and javascript in views. -- You received this message because you are subscribed

Re: newbie question

2015-03-20 Thread David Gleba
I will try to answer your question here another way. I searched google for: form to add two numbers I see: http://stackoverflow.com/questions/14496531/adding-two-numbers-using-javascript This example uses an HTML form and javascript to perform the task on the input. You don't actually need p

Re: newbie question

2015-03-20 Thread VMD
On Friday, March 20, 2015 at 9:58:23 AM UTC-6, David Gleba wrote: > > Does part 3 of the tutorial cover how to make a form, get the values > without storing them in a database, perform the arithmetic and then display > the result? I didn't see that in there. > I don't what to store them in a da

Re: newbie question

2015-03-20 Thread David Gleba
Does part 3 of the tutorial cover how to make a form, get the values without storing them in a database, perform the arithmetic and then display the result? I didn't see that in there. On Thursday, March 19, 2015 at 11:58:14 AM UTC-4, Andrew Farrell wrote: > > The other commenters are right tha

Re: newbie question

2015-03-19 Thread Andrew Farrell
The other commenters are right that reading the tutorial is a good use of your time. https://docs.djangoproject.com/en/1.7/intro/tutorial03/ is the section relevant to your question. On Thu, Mar 19, 2015 at 10:39 AM, Javier Guerra Giraldez wrote: > On Wed, Mar 18, 2015 at 9:41 PM, VMD wrote: >

Re: newbie question

2015-03-19 Thread Javier Guerra Giraldez
On Wed, Mar 18, 2015 at 9:41 PM, VMD wrote: > I have skimmed the tutorial and didn't find (notice) the answer. Why not > point me to an answer to my question? that's exactly the point. your question assumes Django works in some specific way, and there should be a simple answer for a simple need

Re: newbie question

2015-03-19 Thread VMD
On Wednesday, March 18, 2015 at 12:51:22 PM UTC-6, Avraham Serour wrote: > > short - use a view > > follow the tutorial, yes you will learn how to store and retrieve values > from a database, and I understand that you don't need that yet but the > tutorial is very brief, you won't waste your time

Re: newbie question

2015-03-18 Thread Avraham Serour
short - use a view follow the tutorial, yes you will learn how to store and retrieve values from a database, and I understand that you don't need that yet but the tutorial is very brief, you won't waste your time with advanced topics you don't need On Wed, Mar 18, 2015 at 8:08 PM, VMD wrote: >

newbie question

2015-03-18 Thread VMD
New to django and web frameworks in general. The tutorial is great for database type apps but I want to solve a different problem to start with and am kinda stuck. All I want to do is allow a user to input a value(s) and return the output of a python function using that value(s). Could someone

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
Thank you Daniel, I didn't know this! I am going to lookup how to use session. Thanks! On Monday, 19 January 2015 17:13:10 UTC+8, Daniel Roseman wrote: > > On Monday, 19 January 2015 07:28:14 UTC, Cheng Guo wrote: >> >> Hello, >> >> I am new to Django and I have run into an issue with views.py.

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
Hello James: Thank you very much for spending the time reading and answering this question, really appreciated! I complete understand your suggestion of overriding the "save" method in the "UploadFile" to generate the id before saving. Thank you for pointing this out. On the other hand, I rea

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
Hello James: Thank you very much for spending the time reading and answering this question, really appreciated! I complete understand your suggestion of overriding the "save" method in the "UploadFile" to generate the id before saving. Thank you for pointing this out. On the other hand, I rea

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Daniel Roseman
On Monday, 19 January 2015 07:28:14 UTC, Cheng Guo wrote: > > Hello, > > I am new to Django and I have run into an issue with views.py. I > understand that there is a function behind each view. For a view that I am > currently writing, it accepts a file upload from user and stores the file > on

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread James Schneider
I wouldn't decorate them as class methods. You would want to call them from the objects themselves. For the save_to_disk() method, I was actually referring to the Django save() method ( https://docs.djangoproject.com/en/1.7/topics/db/models/#overriding-predefined-model-methods ). As you have it no

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
So in my case, I need to generate a unique id for the file and save it to disk. I have a model called UploadFile, so you recommend to add two class methods to the UploadFile model, like the following? class UploadFile(models.Model): @classmethod def generate_id(): pass @cla

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread James Schneider
I second moving some (or most) of the functionality to models.py. For instance, calculating the SHA value should be done as part of the model's save() function, not done in the view. Convention dictates that the only code that is placed in the view itself should be logic related to prepping the te

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
Great, thanks! On Monday, 19 January 2015 15:46:40 UTC+8, Mike Dewhirst wrote: > > On 19/01/2015 6:28 PM, Cheng Guo wrote: > > Hello, > > > > I am new to Django and I have run into an issue with views.py. I > > understand that there is a function behind each view. For a view that I > > am cu

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Cheng Guo
Great, thanks! -- 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, send email to django-users@goo

Re: Newbie question: How to avoid a very long view function?

2015-01-19 Thread Daniel França
If the operations are model related, why don't move some of those functions to models.py. On Mon 19 Jan 2015 at 08:46 Mike Dewhirst wrote: > On 19/01/2015 6:28 PM, Cheng Guo wrote: > > Hello, > > > > I am new to Django and I have run into an issue with views.py. I > > understand that there is a

Re: Newbie question: How to avoid a very long view function?

2015-01-18 Thread Mike Dewhirst
On 19/01/2015 6:28 PM, Cheng Guo wrote: Hello, I am new to Django and I have run into an issue with views.py. I understand that there is a function behind each view. For a view that I am currently writing, it accepts a file upload from user and stores the file on the server. To do that, I need

Newbie question: How to avoid a very long view function?

2015-01-18 Thread Cheng Guo
Hello, I am new to Django and I have run into an issue with views.py. I understand that there is a function behind each view. For a view that I am currently writing, it accepts a file upload from user and stores the file on the server. To do that, I need to: 1. check the file extension is cor

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-29 Thread Ken Wayne
That was it... On Friday, December 26, 2014 4:45:13 PM UTC-6, Collin Anderson wrote: > > Hi, > > This one comes up a lot. It's confusing because {% block title %} is the > _html_ , the title of the browser tab. > > You want to change {% block branding %}. > > Collin > > On Tuesday, December 23, 2

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-26 Thread Collin Anderson
Hi, This one comes up a lot. It's confusing because {% block title %} is the _html_ , the title of the browser tab. You want to change {% block branding %}. Collin On Tuesday, December 23, 2014 5:18:49 PM UTC-6, Ken Wayne wrote: > > Hmmm, that is one of the directories I tried, > C:\Python34

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Ken Wayne
Hmmm, that is one of the directories I tried, C:\Python34\Scripts\mysite\templates\admin with the file base_site.html On 12/23/2014 5:07 PM, Néstor wrote: You might need to make for admin mysite/templates/admin/base_site.html for regular html files for the polls only mysite/polls/templates/pol

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Néstor
You might need to make for admin mysite/templates/admin/base_site.html for regular html files for the polls only mysite/polls/templates/polls/index.html That is how I got it to work. Good luck!!! :-) On Tue, Dec 23, 2014 at 2:13 PM, Ken Wayne wrote: > Windows 8 > Django 1.7.1 > Python 3.4.2

Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Ken Wayne
Windows 8 Django 1.7.1 Python 3.4.2 Google Chrome Version 39.0.2171.95 m Bottom of part 2 of the the tutorial https://docs.djangoproject.com/en/1.7/intro/tutorial02/ it indicates how to customize the admin template but when I follow the directions it doesn't show any change in my browser. I've

Re: Newbie help - running django-admin.py produces empty mysite folder

2014-11-30 Thread Collin Anderson
Hi, Are there any error messages? Is there already an existing mysite folder? What method did you use to install django? Did you really install django 1.8, not 1.7? Collin On Thursday, November 27, 2014 10:15:51 AM UTC-5, David Pride wrote: > > Title says it all really. Have just installed D

Re: Newbie: How to implement a app/module, which I can include from my html?

2014-11-30 Thread Collin Anderson
Assignment tags are my favorite. @register.assignment_tag def get_categories(): return Category.objects.all() {% get_categories as categories %} {% for category in categories %} {{ category }} {% endfor %} Collin On Thursday, November 27, 2014 5:19:20 AM UTC-5, somecallitblues wrote: > > >

Newbie help - running django-admin.py produces empty mysite folder

2014-11-27 Thread David Pride
Title says it all really. Have just installed Django 1.8, can test django version and get correct response so am *fairly* happy it's installed correctly. I have had Python 2.7 installed and been using perfectly for several months. Altered the PATH variable as discussed so it points to correct

Re: Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread Mario Gudelj
https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags here you go chief On 27/11/2014 8:04 pm, "ThomasTheDjangoFan" < stefan.eichholz.ber...@googlemail.com> wrote: > Oh ok. > > so it would be something like: > > in home.html > {% include 'category-list.html' %} > > in ca

Re: Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread ThomasTheDjangoFan
Oh ok. so it would be something like: in home.html {% include 'category-list.html' %} in category-lists.html {% load those_categories %} ? Am Donnerstag, 27. November 2014 09:55:50 UTC+1 schrieb James Bennett: > > The usual way would be to write a custom template tag that fetches the > objec

Re: Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread James Bennett
The usual way would be to write a custom template tag that fetches the objects and puts them into the template context. -- 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 ema

Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread ThomasTheDjangoFan
Hi guys, I want to display a block of category-links in various places of the website. Those links are populated by making a Category.objects.all request in a view. So right now it seems like each view that should contain those links needs to put the "Category" Model in its context. Now I woul

Re: Newbie question on serving static files from apache

2014-11-15 Thread Daniel Roseman
On Saturday, 15 November 2014 03:13:37 UTC, pythonista wrote: > > I am using django 1.7 and apache. > > I do not understand the instructions on the django tutorial. > > The files were delivered as expected in debug mode and locally from the > django web server. > > > Can someone provide me with a

Newbie question on serving static files from apache

2014-11-14 Thread pythonista
I am using django 1.7 and apache. I do not understand the instructions on the django tutorial. The files were delivered as expected in debug mode and locally from the django web server. Can someone provide me with a simple example or link to a site. Thanks -- You received this message becau

Re: Newbie operational error with Django db tables

2014-11-12 Thread Collin Anderson
Hello, Very interesting. I wonder if the model isn't being noticed in syncdb because it's in models/downloads.py, and it's not referenced in models/__init__.py. Collin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Newbie operational error with Django db tables

2014-11-07 Thread Mr. crazy
I have executed [1] and tried again but no luck, the issues persists I know that "downloads" table is missing yet I didn't in DionaraFR guithub anything regarding that table. That what specifically makes me wonder if I have to build that missing table

Re: Newbie operational error with Django db tables

2014-11-07 Thread Adailton Nascimento
The error that is giving and following this saying in your settings.py in APPS not contain the "downloads" or if you already have to add it only in the database, delete your database and run the shell [1]. or just run the command in the shell [1] I believe that updates the database without havi

Re: Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
well, as I asid in my question I'm following at tutorial on the installation steps of my visualization tool, it does not sat anything about tables creation I have also checked the tool in github but I can't see anything there. and if I want to build t

Re: Newbie operational error with Django db tables

2014-11-06 Thread Adailton Nascimento
Mr.crazy whenever you add content to the model or form run syncdb will have to be added to the database. or delete your database, and run: python manage.py syncdb -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Newbie operational error with Django db tables

2014-11-06 Thread donarb
On Thursday, November 6, 2014 6:31:08 AM UTC-8, Mr. crazy wrote: > well, > > That is totally true.This is the problem which I need to find it's > solution. > Do I have to make the table?? How? > I looked for the DB tables and I didn't find it-Maybe I did not searched > the correct place > > I

Re: Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
well, That is totally true.This is the problem which I need to find it's solution. Do I have to make the table?? How? I looked for the DB tables and I didn't find it-Maybe I did not searched the correct place I need help On Thursday, November 6, 2014 9:04:05 PM UTC+8, Avraham Serour wrote:

Re: Newbie operational error with Django db tables

2014-11-06 Thread Avraham Serour
it looks like django is trying to access a table named downloads which doesn't seems to exists in the db On Thu, Nov 6, 2014 at 8:54 AM, Mr. crazy wrote: > Hello, > > I'm working in a project where I use DionaeaFR to visualize my data > collected by Dionaea and the tutorial >

Newbie operational error with Django db tables

2014-11-06 Thread Mr. crazy
Hello, I'm working in a project where I use DionaeaFR to visualize my data collected by Dionaea and the tutorial I followed uses Django Framework. Later I go and try to access the DionaeaFR graphs through my web browser, H

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-10-01 Thread Daniel Rus Morales
My pleasure ;) Enjoy coding! On 01 Oct 2014, at 22:04, zaiks0105 wrote: > Daniel, > > I appreciate your help. I got drifted away yesterday and got back to it > today. I found my mistake: a fricking typo. My polls/detail.html look for > 'error_message' while I spelt 'error_messge' in my views

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-10-01 Thread zaiks0105
Daniel, I appreciate your help. I got drifted away yesterday and got back to it today. I found my mistake: a fricking typo. My polls/detail.html look for 'error_message' while I spelt 'error_messge' in my views.py. So the error msg was never shown though the page was redirected properly. Thank

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread Daniel Rus Morales
No, that’s not the cause, the lack of it would be. That line shows the content of ‘error_message' when it does exist and has a value other than None. But if you have it in your template the error must be somewhere else in your code. Must be a simple syntax mistake you didn’t notice, either in th

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread zaiks0105
I do. Is that line causing the behavior? On Monday, September 29, 2014 7:15:47 AM UTC-4, Daniel Rus Morales wrote: > > Hi Zaiks0105, > > Do you have the following line in "your polls/templates/polls/detail.html”? > > {% if error_message %}{{ error_message }}{% endif %} > > > On 29 Sep 2014, at 1

Re: Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread Daniel Rus Morales
Hi Zaiks0105, Do you have the following line in "your polls/templates/polls/detail.html”? {% if error_message %}{{ error_message }}{% endif %} On 29 Sep 2014, at 12:48, zaiks0105 wrote: > Hi, > > I am following Django official tutorial and have unanswered issue at part 4, > https://docs.djan

Newbie Question: Django Tutorial Part 4 - Exception Issue

2014-09-29 Thread zaiks0105
Hi, I am following Django official tutorial and have unanswered issue at part 4, https://docs.djangoproject.com/en/1.7/intro/tutorial04/. Here is the exception handling code, except (KeyError, Choice.DoesNotExist): # Redisplay the question voting form. return render(request,

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Andrey Consalter
Thanks Russ, that clarifies a lot! Nice to see guys like you helping newcomers! -- 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...@googlegr

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Russell Keith-Magee
Hi Andrey, On Tue, Sep 9, 2014 at 4:30 AM, Andrey Consalter wrote: > Hi there, > > I've been studying programming with Python 2.7 and Django 1.6, and a few > days ago Django 1.7 was release and with it, the new tutorial that I had > just started. > What you guys would recommend? Keep working wit

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Michael A. Martin
Is anyone else trying out 1.7? I do a jython manage.py runserver 8080 and then it seems to want to render but isn't. > On Sep 8, 2014, at 1:30 PM, Andrey Consalter wrote: > > Hi there, > > I've been studying programming with Python 2.7 and Django 1.6, and a few days > ago Django 1.7 was rele

Newbie question about Django and Python versions.

2014-09-08 Thread Andrey Consalter
Hi there, I've been studying programming with Python 2.7 and Django 1.6, and a few days ago Django 1.7 was release and with it, the new tutorial that I had just started. What you guys would recommend? Keep working with my current environment or update it? How this updates work? How "deep" are t

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2014-07-28 Thread Chou Sunny
i had the same problem by just copying the text on the web, pasting on textedit, and saving it into html. when i open html by Xcode, you will see extra lines, more than the text on the web. simply re-edit html by Xcode, the problem is solved. -- You received this message because you are subscr

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-22 Thread Babatunde Akinyanmi
On 22 Jul 2014 18:56, "Ezequiel" wrote: > > On Saturday, July 19, 2014 10:41:11 PM UTC-3, Martin Torre Castro wrote: >> >> Please could someone help with some piece of advice, pros and cons of every option. Just don't want to do something now I will regret in future. >> Thank you veeery much in ad

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-22 Thread Ezequiel
On Saturday, July 19, 2014 10:41:11 PM UTC-3, Martin Torre Castro wrote: > > Please could someone help with some piece of advice, pros and cons of > every option. Just don't want to do something now I will regret in future. > Thank you veeery much in advance. > > Hi Martín, Just one suggestion: re

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-21 Thread Martin Torre Castro
Thanks Mulianto, ngangsia and Tom. I'm working in Ubuntu but I will take advantage of your instructions ngangsia when setting up all the "machinery". Thanks also Tom, for the advice and the requirements tip, as this will be another thing we're trying for the first time in future. On Sunday, 20

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-21 Thread Tom Evans
On Sun, Jul 20, 2014 at 1:41 AM, Martin Torre Castro wrote: > Hello, > > my name is Martin and I'm a computer engineer from Spain. I'm going to start > a new project with a colleague and I decided to use Django because we > searched for free opensource tools and I'm in love with Python. > > We hav

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-21 Thread ngangsia akumbo
If you are working with windows , let me give you a very simple guide. Google and download setuptools.exe and install in to your computer. First install python 2.7 ans set the python path Then move to this directory C:\Python27\scripts in the windows command . You should run easy_install pip Then

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-20 Thread Phang Mulianto
Hi Martin, Virtualenv is use for using different version of python or python library so it wont use the default python in system. So when open eclipse for editing, no need to activate virtualenv, but when you need to run the code in specific python install, you need to activate virtualenv. VIrtu

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-20 Thread Martin Torre Castro
Firstly, I want to say "thank you" to you, Thomas. Secondly, could you or someone how does the development cycles work with virtualenv? Is this way of working just as I wrote? I think it works by activating the virtualenv every time with a "source activate" command and after that starting to p

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-19 Thread Thomas Lockhart
On 7/19/14 6:41 PM, Martin Torre Castro wrote: Hello, my name is Martin and I'm a computer engineer from Spain. I'm going to start a new project with a colleague and I decided to use Django because we searched for free opensource tools and I'm in love with Python. We have made a couple of tu

Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-19 Thread Martin Torre Castro
Hello, my name is Martin and I'm a computer engineer from Spain. I'm going to start a new project with a colleague and I decided to use Django because we searched for free opensource tools and I'm in love with Python. We have made a couple of tutorials (the official one and "Tango with django"

Re: Django newbie issues

2014-07-08 Thread Lachlan Musicman
(GEdit and less/more shouldn't require too much learning - gedit is literally the equivalent of Notepad, less and more are what the 70s look like. L. On 9 July 2014 12:00, Janelle wrote: > Thanks, all, for the advice. > I am facing a number of learning curves, and I appreciate that you all take

Re: Django newbie issues

2014-07-08 Thread Janelle
Thanks, all, for the advice. I am facing a number of learning curves, and I appreciate that you all take time from the more advanced work you do to help me out. I'll seek someone local. On Tue, Jul 8, 2014 at 6:09 PM, Mike Dewhirst wrote: > On 9/07/2014 6:24 AM, Janelle wrote: > >> I've never

Re: Django newbie issues

2014-07-08 Thread Lachlan Musicman
On 9 July 2014 06:24, Janelle wrote: > I've never worked in Ubuntu before, but from what I understand, there is no > text editor or Word or anything like that; everything is done through the > command line and there is no "desktop." > > So, how would I open settings.py with Ubuntu? > GEdit is a t

Re: Django newbie issues

2014-07-08 Thread Mike Dewhirst
On 9/07/2014 6:24 AM, Janelle wrote: I've never worked in Ubuntu before, but from what I understand, there is no text editor or Word or anything like that; everything is done through the command line and there is no "desktop." So, how would I open settings.py with Ubuntu? You could try somet

RE: Django newbie issues

2014-07-08 Thread Ilya Kazakevich
[mailto:django-users@googlegroups.com] On Behalf Of Janelle >Sent: Wednesday, July 09, 2014 12:25 AM >To: django-users@googlegroups.com >Subject: Re: Django newbie issues > >I've never worked in Ubuntu before, but from what I understand, there is no >text >editor or Wor

Re: Django newbie issues

2014-07-08 Thread Janelle
I've never worked in Ubuntu before, but from what I understand, there is no text editor or Word or anything like that; everything is done through the command line and there is no "desktop." So, how would I open settings.py with Ubuntu? On Tue, Jul 8, 2014 at 12:47 AM, Lachlan Musicman wrote: >

Re: Django newbie issues

2014-07-07 Thread Lachlan Musicman
If they aren't in settings, then the software would never have worked (if it needed a DB) :) You can just open settings.py with a text editor - notepad, wordpad, gedit, emacs/vim, even word if you want. It's just a text file. Cheers L. On 8 July 2014 14:05, Janelle O'Dea wrote: > Again, super h

Re: Django newbie issues

2014-07-07 Thread Janelle O'Dea
Again, super helpful. I just have a few more (hopefully not terribly obvious) questions: this mechanism specified in settings.py; will I access settings.py the same way as manage.py? python settings.py runserver? If I find the credentials for the database (if they aren't in settings.py, I proba

Re: Django newbie issues

2014-07-07 Thread Mike Dewhirst
On 8/07/2014 2:22 AM, Janelle O'Dea wrote: Thank you, Mike. I haven't tried your first option yet, but I will either today or tomorrow. What kinds of clues would I look for in settings? Django needs credentials to access the database and there should be a mechanism specified in settings to get

Re: Django newbie issues

2014-07-07 Thread Janelle O'Dea
Thank you, Mike. I haven't tried your first option yet, but I will either today or tomorrow. What kinds of clues would I look for in settings? Also: any ideas about my first question? Everyone: I'm in Naples, Florida. If anyone is in the Southwest Florida area and wants to try and help, I'll ge

Re: Django newbie issues

2014-07-06 Thread Mike Dewhirst
Janelle Your quickest solution is to reveal your location and ask for someone to help out on a short-term basis. There are heaps of Django people everywhere and many inhabit this list. What you are asking for is possibly quite easy but can defeat you if you are unfamiliar with the environmen

Django newbie issues

2014-07-06 Thread Janelle O'Dea
Hi all, I have two separate Django questions. One: I am trying to learn how to use Django on my computer (Mac OS, Mavericks) and was first getting the error "unable to open database" when running "python manage.py syncdb." To fix it, I followed instructions from here: https://coderwall.com/p/

How to simplify this code - newbie question

2014-06-30 Thread Michael Lind Hjulskov
Hi :o) I would like to simplify *get_rating* to fewer lines of code: class Product(AbstractProduct): ... just a little info about the model fields ... title = charfield parent = foreignkey(Product, related_name='variants') rating = a float def is_group - return True if it is

RE: newbie with models - user-defined function raised exception

2014-06-03 Thread Ilya Kazakevich
easure!" >-Original Message- >From: django-users@googlegroups.com >[mailto:django-users@googlegroups.com] On Behalf Of Sami Razi >Sent: Tuesday, June 03, 2014 11:12 PM >To: django-users@googlegroups.com >Subject: newbie with models - user-defined function rai

newbie with models - user-defined function raised exception

2014-06-03 Thread Sami Razi
hi, i'm using djangobook to learn django, when i go to localhost:8000/admin there's no problem, also no problem with these two: http://localhost:8000/admin/books/ http://localhost:8000/admin/books/publisher/ but going to: http://localhost:8000/admin/books/book give

Re: [newbie] -- Regex-matching ("Tango with Django")

2014-03-15 Thread Camilo Torres
On Friday, March 14, 2014 8:14:57 PM UTC-4:30, David wrote: > > I am wodering whether my implementation is incorrect or whether there is > a typo in the textbook. My question is how I can make sense of these > instructions: "The regular expression to match about/ is r'^about/'". > > I was follow

Re: [newbie] -- Regex-matching ("Tango with Django")

2014-03-14 Thread Shawn Milochik
You're meant to only have one include that redirects URLs beginning with rango to the app's urls.py. Then, the app's urls.py must not have /rango in the URLs. The idea is that all URLs starting with "rango" get the "rango" stripped off and passed to the rango app, which itself has / and /about. -

[newbie] -- Regex-matching ("Tango with Django")

2014-03-14 Thread David
Dear list, I am wodering whether my implementation is incorrect or whether there is a typo in the textbook. My question is how I can make sense of these instructions: "The regular expression to match about/ is r'^about/'". I was following the "Tango with Django" book. In the exercises of chapter

Re: [newbie] BASE_DIR vs. SETTINGS_DIR

2014-03-09 Thread David
Dear Russell, thanks -- brilliant advice! Greetings from Copenhagen, David On 09/03/14 01:10, Russell Keith-Magee wrote: > > On Sun, Mar 9, 2014 at 5:09 AM, David > wrote: > > Dear list, > > I follow > http://www.tangowithdjango.com/book/chapters/templates

<    1   2   3   4   5   6   7   8   9   10   >