Re: Needs help

2022-02-23 Thread Steven Mapes
If you mean how can you take an image of something and turn it into a working design for a LEGO build then you need to look into tools that can convert 2D or better, 3D captures into lego designs if such sites/code exists. It certainly won't be in Django, but then you can build a Django site to

Re: Needs help

2022-02-22 Thread Heman Okumbo
Did you mean to turn(print) images to physical objects especially using 3D printers? On Tue, Feb 22, 2022, 12:55 Antonis Christofides < anto...@antonischristofides.com> wrote: > Hello Loic, > > Please how to turn a picture into a LEGO version? > A project that does this will be welcome. > > Not s

Re: Needs help

2022-02-22 Thread kuda ronnie
lol yea we should be patient with reading i agree wit u. On Tue, Feb 22, 2022 at 11:55 AM Antonis Christofides < anto...@antonischristofides.com> wrote: > Hello Loic, > > Please how to turn a picture into a LEGO version? > A project that does this will be welcome. > > Not sure what you mean

Re: Needs help

2022-02-22 Thread loic ngounou
Please how to transform a simple image to LEGO image using django ? Le mar. 22 févr. 2022 à 10:53, Antonis Christofides < anto...@antonischristofides.com> a écrit : > Hello Loic, > > Please how to turn a picture into a LEGO version? > A project that does this will be welcome. > > Not sure what yo

Re: Needs help

2022-02-22 Thread Antonis Christofides
Hello Loic, Please how to turn a picture into a LEGO version? A project that does this will be welcome. Not sure what you mean by that and what it has to do with Django. You aren't going to get any useful answers in this list unless you change the way you ask questions. You should really tak

Needs help

2022-02-22 Thread loic ngounou
Please how to turn a picture into a LEGO version? A project that does this will be welcome. -- 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+unsubsc

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-07 Thread Deborah Emeni
Hello Philip, I use the same tutorial book "Django for beginners" as you and I understand why the author of the book refers to the pages directory as if there is only one. You are having two Directories because you ran this command: $ django-admin startproject pages The Author of the book ran th

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-07 Thread Vikash Chitransh
I can help you in complete the book and create sample django application through skype. With Regards, Vikash Kumar On Fri, Mar 6, 2020 at 9:01 AM Philip Means wrote: > Thank you for your response. The book is Django for Beginners, by William > S. Vincent. I will copy and send you the chapter I

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Ali Abubakar Muhd
May be you forgot to tell django where it looks for your template directory. To do this in your project directory go to setting and create a variable like this; TEMPLATE_DIR = os.path.join( BASE_DIR, 'templates') Then locate TEMPLATES in your setting and put TEMPLATE_DIR variable in DIRS, like thi

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Shishir Jha
"One thing that bothers me is that the author of the book refers to the pages directory as if there is only one. In fact, django created two. The top level, (Is that referred to as the base?) has manage.py in it. One of the childs of this is another ‘page’ which is where I put urls.py. At one po

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Jorge Gimeno
I think Alvaro is on to something. I just noticed that there ins't a virtual enviroment active, and the traceback shows that pipenv run wasn't used either. Can we try pipenv shell and then running python manage.py runserver again? If you didn't install Django using pipenv install, do that first.

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Philip Means
Thank you all for your help and your interest. I am not sure how best to handle getting Information that you all have requested. Don’t want to clutter up the thread more than necessary, so I will send the information to all that have shown interest as .pdf attachments in emails. To Jorge G

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Byiringiro Yves
Hello guys, I need your help! How can I give a staff user a permission to create a user account in django? On Fri, 6 Mar 2020 at 06:01 Shishir Jha wrote: > Can you show the code that you have written until page 55? > > > On Fri, 6 Mar 2020, 9:01 am Philip Means, wrote: > >> Thank you for your r

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread SHANKAR JHA
Why don't you compare your code with the Github repo provided by the author: https://github.com/wsvincent/djangoforbeginners. You can share your code with us for more clarity. On Fri, Mar 6, 2020 at 9:31 AM Shishir Jha wrote: > Can you show the code that you have written until page 55? > > > On

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Alvaro Orozco
It seems like you're not activating the virtual environment. Active the virtual environment and install the dependencies. On Thu, Mar 5, 2020 at 11:02 PM Shishir Jha wrote: > Can you show the code that you have written until page 55? > > > On Fri, 6 Mar 2020, 9:01 am Philip Means, wrote: > >> T

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Jorge Gimeno
On Thu, Mar 5, 2020 at 8:01 PM Shishir Jha wrote: > Can you show the code that you have written until page 55? > > > On Fri, 6 Mar 2020, 9:01 am Philip Means, wrote: > >> Thank you for your response. The book is Django for Beginners, by >> William S. Vincent. I will copy and send you the chapt

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Shishir Jha
Can you show the code that you have written until page 55? On Fri, 6 Mar 2020, 9:01 am Philip Means, wrote: > Thank you for your response. The book is Django for Beginners, by William > S. Vincent. I will copy and send you the chapter I am having trouble > with. My directory structure, as cr

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Shishir Jha
Can you show the code that you have written upto page 55? -- 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

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Jorge Gimeno
On Thu, Mar 5, 2020 at 6:04 PM Philip Means wrote: > I am new to web development. Wanted to help my daughter with a simple > website (she does pet portraits) and learn something that interests me. I > watched some you tube tutorials, then bought a book. First couple simple > projects went OK.

Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Philip Means
I am new to web development. Wanted to help my daughter with a simple website (she does pet portraits) and learn something that interests me. I watched some you tube tutorials, then bought a book. First couple simple projects went OK. Then I got to templates and I have not been able to get

Re: Needs help

2018-07-12 Thread Kasper Laudrup
Hi Umar, On 2018-07-12 12:28, Umar Kambala wrote: That's what I have been trying since, but it's not going through What have you been trying? I have no idea what you are replying to here? Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Gro

Re: Needs help

2018-07-12 Thread Umar Kambala
That's what I have been trying since, but it's not going through On Jul 12, 2018 9:01 AM, "Mike Dewhirst" wrote: > Try http://127.0.0.1:8000 > > On 12/07/2018 6:40 PM, Umar Kambala wrote: > >> >> Kasper thanks for your brotherly advice, please I will be glad next time >> u add me a link. But I ca

Re: Needs help

2018-07-12 Thread Kasper Laudrup
Hi Umar, On 2018-07-12 10:40, Umar Kambala wrote: Kasper thanks for your brotherly advice, please I will be glad next time u add me a link. As I mentioned before, I think you should pick up a beginner book on Python programming. I personally read a book called "Dive into Python" some years

Re: Needs help

2018-07-12 Thread Mike Dewhirst
Try http://127.0.0.1:8000 On 12/07/2018 6:40 PM, Umar Kambala wrote: Kasper thanks for your brotherly advice, please I will be glad next time u add me a link. But I came across another error, when I run python manage.py runserver everything work find but when I enter 127.0.0.1 I gets "no int

Re: Needs help

2018-07-12 Thread Umar Kambala
Kasper thanks for your brotherly advice, please I will be glad next time u add me a link. But I came across another error, when I run python manage.py runserver everything work find but when I enter 127.0.0.1 I gets "no internet connection" do I hv to be connected wit internet before I can access d

Re: Needs help

2018-07-09 Thread Umar Kambala
Thanks On Jul 9, 2018 11:57 AM, "Kasper Laudrup" wrote: > Hi Umar. > > On 07/09/2018 01:52 PM, Umar Kambala wrote: > >> >> This is the error >> >> url(r'^$', views.home, name='home') >> attributeError: module 'boards.views' has no attribute 'home' >> >> > Do you know what a Python module is and w

Re: Needs help

2018-07-09 Thread Kasper Laudrup
Hi Umar. On 07/09/2018 01:52 PM, Umar Kambala wrote: This is the error url(r'^$', views.home, name='home') attributeError: module 'boards.views' has no attribute 'home' Do you know what a Python module is and what an attribute on a module means? Then the answer is obvious. Try to read up

Needs help

2018-07-09 Thread Umar Kambala
Am lost as to what to do, I try troubleshooting but couldn't fine de answer... This are my codes from django.contrib.auth.models import User from django.shortcuts import render, redirect, get_object_or_404 from .models import Board, Topic, Post def new_topic(request, pk): board = get_object_or_404

Re: Beginner needs help with models.py for a Survey like Website

2014-11-12 Thread Collin Anderson
Hello, It seems to me you should merge your Picture and Collection model, right? because there's a collection of questions for each picture? So I thought that I need additional fields in the Picture class to safe the > average score, but what if my question list changes? Then I need to update

Beginner needs help with models.py for a Survey like Website

2014-11-06 Thread Tobias Dacoir
Hi all, I need to create some kind of survey for my studies but I'm struggling with the models.py. I did read some tutorial on Django and I like it very much, but I'm no expert when it comes to database modellling. Here is my proposed models.py: class User(models.Model): SEX = (

RE: adding process_exception() to middleware; newbie needs help

2010-10-06 Thread Sells, Fred
Thanks to Daniel and Bruno, will try your suggestions soonest. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsu

Re: adding process_exception() to middleware; newbie needs help

2010-10-06 Thread bruno desthuilliers
On 6 oct, 16:42, Fred wrote: > My django app is working great with Debug=True.  But now I'm in > production and I want to email exceptions to me That's the default behaviour if you correctly filled the relevant parts of your settings.py (that is, mainly, the ADMINS, and all the SMTP_xxx parts if

Re: adding process_exception() to middleware; newbie needs help

2010-10-06 Thread Daniel Roseman
On Oct 6, 3:42 pm, Fred wrote: > My django app is working great with Debug=True.  But now I'm in > production and I want to email exceptions to me and print them to my > logfile.  I've been googling and searching the docs for the last 2 > hours and what I really need is a snippet that shows how to

adding process_exception() to middleware; newbie needs help

2010-10-06 Thread Fred
My django app is working great with Debug=True. But now I'm in production and I want to email exceptions to me and print them to my logfile. I've been googling and searching the docs for the last 2 hours and what I really need is a snippet that shows how to do it in middleware/settings.py. I've

Re: Lazy translation needs help in model.save()?

2009-07-28 Thread Joshua Russo
On Jul 28, 2:00 pm, Joshua Russo wrote: > I'm raising an error in one of my model save forms and it's not converting > the translation string to unicode. If I first pass it into the unicode() > function it works though. The following is the pertinent portions of my > model class. > class Matriz(m

Lazy translation needs help in model.save()?

2009-07-28 Thread Joshua Russo
I'm raising an error in one of my model save forms and it's not converting the translation string to unicode. If I first pass it into the unicode() function it works though. The following is the pertinent portions of my model class. class Matriz(modelUtils.MyModelAudit): ULTIMOANO_MISSING_ERRO

Re: How to modify and object before saving it in ModelForm [was] Newbie needs help

2009-05-30 Thread Andy
Thanks Kenneth. I'll check out the link and use better subject lines in the future...unless you want to send a donation! On May 30, 1:38 am, Kenneth Gonsalves wrote: > On Saturday 30 May 2009 12:47:27 Andy wrote: > > > I would like to set the order_number in my model to be equal to the > > auto

Re: How to modify and object before saving it in ModelForm [was] Newbie needs help

2009-05-30 Thread Kenneth Gonsalves
On Saturday 30 May 2009 12:47:27 Andy wrote: > I would like to set the order_number in my model to be equal to the > automatically assigned ID plus 10,000.  Can anybody tell me how to > achieve this? check out commit=False in this document: http://docs.djangoproject.com/en/dev/topics/forms/modelf

Newbie needs help

2009-05-30 Thread Andy
Hello, I am new to Django and Python but am determined to learn. I am creating a page that asks for some user input. My model looks like this: from django.db import models from django.forms import ModelForm floor_plan_choices = ( ('A', 'Square'), ('B', 'Rectangular'),

Re: Newb needs help with tracking variables in Templates

2009-01-06 Thread junker37
Yep, reading the documentation helps ;). But here's how your code should look: {% for art in my_art_list %} {% cycle '' '' '' %} {% cylce '' '' '' %} {% empty %} You

Re: Newb needs help with tracking variables in Templates

2009-01-06 Thread bruno desthuilliers
On 6 jan, 02:00, "django_fo...@codechimp.net" wrote: (snip) > First, let me take some Motrin for my very sore rear end. I have been > reading documentation. In fact, I started with the tutorials on the > site that walks you through writing the polling application, then > moved on to some doc

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread Daniel Roseman
On Jan 5, 5:39 pm, "django_fo...@codechimp.net" wrote: > I have a pretty simple template that needs to print some data in a > bunch of table rows.  I have done something like this: > > > {% if my_art_list %} >         {% count = 0 %} >         {% for art in my_art_list %} >                 {% if

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread django_fo...@codechimp.net
On Jan 5, 5:56 pm, bruno desthuilliers wrote: > On 5 jan, 23:39, "django_fo...@codechimp.net" > wrote: > > > I have a pretty simple template that needs to print some data in a > > bunch of table rows.  I have done something like this: > > > > > {% if my_art_list %} > >         {% count = 0 %}

Newb needs help with tracking variables in Templates

2009-01-05 Thread django_fo...@codechimp.net
I am very new to Django and Python. I have been working on a pet project that has a table of rows. My thought was to have a counter in the template, and use modulus to write out the row start/stops out. The code looks like this: {% if my_art_list %} {% count = 0 %} {% for art i

Re: Newb needs help with tracking variables in Templates

2009-01-05 Thread bruno desthuilliers
On 5 jan, 23:39, "django_fo...@codechimp.net" wrote: > I have a pretty simple template that needs to print some data in a > bunch of table rows. I have done something like this: > > > {% if my_art_list %} > {% count = 0 %} This just won't work > {% for art in my_art_list %} >

Newb needs help with tracking variables in Templates

2009-01-05 Thread django_fo...@codechimp.net
I have a pretty simple template that needs to print some data in a bunch of table rows. I have done something like this: {% if my_art_list %} {% count = 0 %} {% for art in my_art_list %} {% if count%3 = 0 %} {% endif %}

Re: Django newcomer needs help on concept of views

2008-06-27 Thread bruno desthuilliers
On 27 juin, 09:47, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Hi guys, > > I just started learning about python and django. For the past months I > was working on a project using a PHP framework (I guess, the name > would not be important right now :). For my initial experiment, I > would like to

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Reza Muhammad
Oh yea, thats right. Since, urls conf look for (for example mysite.views), which is in mysite app, file views.py, I should also be able to put mysite.special_views in my urls conf to look in mysite app, file special_views.py, right? Thanks alot :) On Jun 27, 4:17 pm, Alaa Salman <[EMAIL PROTECT

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Horst Gutmann
And if you have some functions that are used by views from both modules, just create a new module and name it for instance utils.py. Then you can simply import something from this new module into your views.py:: from .utils import my_function -- Horst On Fri, Jun 27, 2008 at 11:17 AM, Alaa

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Daniel Roseman
On Jun 27, 8:47 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Hi guys, > > I just started learning about python and django. For the past months I > was working on a project using a PHP framework (I guess, the name > would not be important right now :).  For my initial experiment, I > would like t

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Alaa Salman
On Jun 27, 10:47 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Anyway, I am used to having separate files to facilitate different > controllers (I think it's called views in django).  On the other hand, > django uses one views.py for one application.  Is there anyway I can > have a views/parts.p

Django newcomer needs help on concept of views

2008-06-27 Thread Reza Muhammad
Hi guys, I just started learning about python and django. For the past months I was working on a project using a PHP framework (I guess, the name would not be important right now :). For my initial experiment, I would like to port my last project that I used with PHP to django. The project conta

Re: Newbie here, needs help with ImageField

2008-03-10 Thread foxbunny
On Mar 10, 2:10 pm, Michael Newman <[EMAIL PROTECTED]> wrote: > Passing your error along would be helpful because it will help us > pinpoint exactly what part of your code is having issues. Python > traceback is amazing helpful in that if you follow its path, even > though it might not look like a

Re: Newbie here, needs help with ImageField

2008-03-10 Thread Michael Newman
Passing your error along would be helpful because it will help us pinpoint exactly what part of your code is having issues. Python traceback is amazing helpful in that if you follow its path, even though it might not look like anything initially, it will lead you to what the problem is. This is wh

Newbie here, needs help with ImageField

2008-03-10 Thread foxbunny
Hi, I've read the tutorial, and bits of docs here and there. I would like to thank the great Django community for making this a splendid learning experience! So, I felt confident enough to start writing a simple image gallery app. Here's the code for the main app's models.py. http://dpaste.com

Re: Newbie needs help with real-world example...

2005-12-02 Thread Kenneth Gonsalves
On Friday 02 Dec 2005 9:49 pm, Adrian Holovaty wrote: > On 12/2/05, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > > No I meant things like, informing us about core=True > > missing It actually validates > > the models on startup. apache/modpython doesn't. AFAIK > > Correct, Apache doesn't. But

Re: Newbie needs help with real-world example...

2005-12-02 Thread Adrian Holovaty
On 12/2/05, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > No I meant things like, informing us about core=True missing It > actually validates > the models on startup. apache/modpython doesn't. AFAIK Correct, Apache doesn't. But you can run "django-admin.py validate [appname]" at any time to g

Re: Newbie needs help with real-world example...

2005-12-02 Thread Joshua D. Drake
as will apache/modpython No I meant things like, informing us about core=True missing It actually validates the models on startup. apache/modpython doesn't. AFAIK Joshua D. Drake -- The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 PostgreSQL Replication, Consulting, Cus

Re: Newbie needs help with real-world example...

2005-12-02 Thread John Szakmeister
On Thursday 01 December 2005 21:01, James Bennett wrote: > On 12/1/05, John Szakmeister <[EMAIL PROTECTED]> wrote: > > I don't see why not. The apps themselves aren't big, and isn't it the > > purpose of runserver to help do development and testing? I think my > > problem is what Luke mentioned:

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Friday 02 Dec 2005 10:16 am, Joshua D. Drake wrote: > > > > I feel that runserver is only meant for people to evaluate > > django. Once they see the automatic admin interface and decide > > to proceed further it makes no sense to use runserver as > > development should always be in the same en

Re: Newbie needs help with real-world example...

2005-12-01 Thread Joshua D. Drake
I feel that runserver is only meant for people to evaluate django. Once they see the automatic admin interface and decide to proceed further it makes no sense to use runserver as development should always be in the same environment as production One thing that is really useful abo

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Thursday 01 Dec 2005 7:14 pm, Afternoon wrote: > On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote: > > i seriously doubt whether you could run the site with runserver > > - try it with the full apache2 config > > Woah, hang on. If Django is not serving anything useful through > runserver, putti

Re: Newbie needs help with real-world example...

2005-12-01 Thread James Bennett
On 12/1/05, John Szakmeister <[EMAIL PROTECTED]> wrote: > I don't see why not. The apps themselves aren't big, and isn't it the purpose > of runserver to help do development and testing? I think my problem is what > Luke mentioned: a lack of data. Yeah, I poked around in the djangoproject.com c

Re: Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
On Thursday 01 December 2005 07:04, Kenneth Gonsalves wrote: > On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote: > > I should mention that at the moment I'm using django-admin.py's > > runserver to run the site.  I just want to make sure I get all > > the configuration settings correct befo

Re: Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
On Thursday 01 December 2005 19:05, Luke Plant wrote: > On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote: > > It runs, but > > unfortunately, it complains that it can't find any pages. Not the > > weblog, not the main page, nothing. > > I'm guessing the pages are stored in the database.

Re: Newbie needs help with real-world example...

2005-12-01 Thread Luke Plant
On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote: > It runs, but > unfortunately, it complains that it can't find any pages. Not the > weblog, not the main page, nothing. I'm guessing the pages are stored in the database. Do you have a copy of the djangoproject.com DB? I wouldn't ha

Re: Newbie needs help with real-world example...

2005-12-01 Thread Afternoon
On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote: i seriously doubt whether you could run the site with runserver - try it with the full apache2 config Woah, hang on. If Django is not serving anything useful through runserver, putting it up on Apache isn't going to help anything. John,

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote: > I should mention that at the moment I'm using django-admin.py's > runserver to run the site.  I just want to make sure I get all > the configuration settings correct before I attempt to do the > full up Apache 2 config. i seriously doubt

Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
I've been through the tutorial pages (which are great!) and managed to get all that working without any fuss. I'm contemplating using Django for my company's website since I could integrate a few applications so that others can post job openings, and do some other miscellaneous things. I deci