MySQLDB install issues on OS X 10.4

2008-04-16 Thread Ron

Hello - massively frustrated.

Python 2.5.2 installed and running
Django latest build installed and running

Have tried for three days to lick the mysqldb installation, no dice.
Have checked path statements, etc.  I have dev tools installed.  GCC
4.0.1.

running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-ppc-2.5/MySQLdb
running build_ext
building '_mysql' extension
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/
MacOSX10.4u.sdk
Please check your Xcode installation
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -
Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/
usr/local/mysql/include -I/Library/Frameworks/Python.framework/
Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-
ppc-2.5/_mysql.o -Os -arch ppc -fno-common


There are around 200 rows of output error messages.

Any help would be greatly appreciated, as Im a NOOB, and am not a
developer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Big Picture?

2013-07-06 Thread ron
I need help with getting the big picture in so far as what Django can help 
me accomplish. I need to replace an antiquated online attendance-taking 
system. My first thought was to just build from scratch using Apache, 
Python, MySQL, HTML/JavaScript. My first stop was researching how to 
integrate Python and Apache, but that led me down the rabbit hole of 
programming. I kept running across using "Frameworks". From my reading so 
far, I can't determine if Django, as a framework, will yeild any advantage 
over just implementing the standalone bits and pieces.

I'm putting out the word, here on the kist, for direction in this matter. 
My mail confusion is, does Django ome with its own database, and is this 
the same type database that I'm referring to to when I mentioned doing this 
task using the autonomous pieces?

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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Big Picture?

2013-07-07 Thread ron
Thanks, I'm leaning towards MySQL so far, based on the link you gave.

On Sunday, July 7, 2013 3:45:01 AM UTC-7, Huy T wrote:
>
> Django comes with support via it's backend to various databases. If you're 
> using MySQL 5.0+, Django will support that. The majority of your 
> interaction will be done probably through the ORM (Object Relational 
> Mapping system.)
>
> You may want to skim on a very high-level this URL:
>
> https://docs.djangoproject.com/en/1.5/ref/databases/
>
> Would imagine the scope of your project would only use this one MySQL 
> database; just an outsiders assumption.
>
>
> On Sun, Jul 7, 2013 at 1:03 AM, ron  >wrote:
>
>> I need help with getting the big picture in so far as what Django can 
>> help me accomplish. I need to replace an antiquated online 
>> attendance-taking system. My first thought was to just build from scratch 
>> using Apache, Python, MySQL, HTML/JavaScript. My first stop was researching 
>> how to integrate Python and Apache, but that led me down the rabbit hole of 
>> programming. I kept running across using "Frameworks". From my reading so 
>> far, I can't determine if Django, as a framework, will yeild any advantage 
>> over just implementing the standalone bits and pieces.
>>
>> I'm putting out the word, here on the kist, for direction in this 
>> matter. My mail confusion is, does Django ome with its own database, and is 
>> this the same type database that I'm referring to to when I mentioned doing 
>> this task using the autonomous pieces?
>>
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Big Picture?

2013-07-07 Thread ron
Thanks Amirouche,

Your diagram is immesely clarifying. I think I'll use it to keep track of 
things. Thanks again. :)

On Sunday, July 7, 2013 7:05:08 AM UTC-7, Amirouche wrote:
>
> Hi,
>
> I have a diagram I call big picture, you might find it useful (see 
> attachment).
>
> Anything green is most of the time provided by the framework at least it 
> is the case in Django.
>
> Anything gray you have to make a choice for.
>
> Anything blue is your code.
>
> Arrows are kind of inspired snakes I'm not sure of the meaning of each of 
> them ;)
>  
>
> 2013/7/7 ron >
>
>> I need help with getting the big picture in so far as what Django can 
>> help me accomplish.
>
>
> Have a look at Django CMS: mezzanine, djangocms amstrongcms. There is also 
> a nice demo of django xadmin.
>  
>
>> I need to replace an antiquated online attendance-taking system. My first 
>> thought was to just build from scratch using Apache, Python, MySQL, 
>> HTML/JavaScript. 
>
>
> Sounds like a lot of work (see next answer)
>  
>
>> My first stop was researching how to integrate Python and Apache, but 
>> that led me down the rabbit hole of programming.
>
>
> Python interface itself with servers using the WSGI protocol, this might 
> help. Also there is a framework I'm working 
> on<https://github.com/amirouche/Nerfed>(not tested with Apache but should 
> work) that might give insight on what is 
> needed to get a framework up.
>  
>
>> I kept running across using "Frameworks". From my reading so far, I can't 
>> determine if Django, as a framework, will yeild any advantage over just 
>> implementing the standalone bits and pieces.
>
>
> Yes it will provide :)
>  
>
>> I'm putting out the word, here on the kist, for direction in this 
>> matter. My mail confusion is, does Django ome with its own database, and is 
>> this the same type database that I'm referring to to when I mentioned doing 
>> this task using the autonomous pieces?
>>
>
> I'm not sure I fully understand what you mean here but I try to answer. 
> Django was built from the ground up to contains everything needed to build 
> a CMS with. This is not anymore True as-is, since there are now somewhat 
> common componenent of a website that are not part of Django but developped 
> outside, at least the following are very helpful:
>
> - Django compressor
> - South
> - Django debug toolbar
> - Sentry
> - Django social auth
> - Celery
> - Haystack
> - There are e-commerce django appliations but I have no insight on them
> - Django crispy forms is getting some traction
>
> You don't have to use them, but you might need them, just like Django 
> Admin.
>
> And a miriad of other application that can help you in your developpement 
> at least to bootstrap your project commonly known as django applications. 
> Those are specific to Django, aka. most of the time you can't use them with 
> other frameworks. There is different kind of apps, apps that provides user 
> features, other that are only technical, some of them also are useful 
> goodies (django debug toolbar, django extended choices) etc... all this 
> makes developpement and learning easier because most of the time you have 
> something to copy or learn from and loads of documentation and people that 
> can help.
>
> As far as I'm concerned, I went to (somewhat) autonomous pieces route by 
> reusing what is done by others because I want to experiement with a 
> somewhat new API (and learn new stuff). Rolling it's own framework is not 
> difficult if you reuse pieces from others, but you have to have a good idea 
> of what you want to achieve and what your solution will make easier (for a 
> specific case?). If you have very specific needs and you know what you are 
> doing go explore other frameworks mostly Pyramid which is said to be easy 
> to customise and scales well or mini-frameworks which have their community 
> too and share ressources among the rest of Python community that said you 
> won't always benefit from Django ecosystem. *If you want to get things 
> done, Django is an answer.*
>
> Also, I might sound a Django enthusiastic fanboy, but I'm not, I find it's 
> has many flows not major flows but still thing could be nicer, more elegant 
> et al. and other stuff. In my case the «ecosystem is great» is not 
> appealing, most of the time I can handle issues on my own, or adapt stuff 
> from a Django solution, but for starter, it's a game changer. Anyway, if I 
> want to build something right now, I use Django and it's not only because I 
> know

Re: Big Picture?

2013-07-07 Thread ron
Thanks Huy T, I'm leaning towards MySQL so far, based on the link you gave.

On Sunday, July 7, 2013 3:45:01 AM UTC-7, Huy T wrote:
>
> Django comes with support via it's backend to various databases. If you're 
> using MySQL 5.0+, Django will support that. The majority of your 
> interaction will be done probably through the ORM (Object Relational 
> Mapping system.)
>
> You may want to skim on a very high-level this URL:
>
> https://docs.djangoproject.com/en/1.5/ref/databases/
>
> Would imagine the scope of your project would only use this one MySQL 
> database; just an outsiders assumption.
>
>
> On Sun, Jul 7, 2013 at 1:03 AM, ron  >wrote:
>
>> I need help with getting the big picture in so far as what Django can 
>> help me accomplish. I need to replace an antiquated online 
>> attendance-taking system. My first thought was to just build from scratch 
>> using Apache, Python, MySQL, HTML/JavaScript. My first stop was researching 
>> how to integrate Python and Apache, but that led me down the rabbit hole of 
>> programming. I kept running across using "Frameworks". From my reading so 
>> far, I can't determine if Django, as a framework, will yeild any advantage 
>> over just implementing the standalone bits and pieces.
>>
>> I'm putting out the word, here on the kist, for direction in this 
>> matter. My mail confusion is, does Django ome with its own database, and is 
>> this the same type database that I'm referring to to when I mentioned doing 
>> this task using the autonomous pieces?
>>
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Big Picture?

2013-07-07 Thread ron
Thanks for the link ajohnston, I'll do the Gjango download and give it a 
whirl. :)

On Sunday, July 7, 2013 2:21:05 PM UTC-7, ajohnston wrote:
>
> Hi Ron,
>
> To understand more clearly how Django works and what it can do for you, I 
> would strongly urge to you go through the tutorial here:
>
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> Depending on your current Python level and familiarity with web 
> programming in general, it will take you 3-6 hours to complete, but the 
> tutorial will show you everything you need to know (at a high level) about 
> Django and how it may (or may not) solve your problem.
>
> Flask is another Python web programming framework that many Python 
> programmers find useful. It is lighter-weight than Django, but if you 
> already know Python, it would be interesting for you to also do a Flask 
> tutorial as well just for comparison. Getting some hands-on experience will 
> be much more useful than anything I could ever tell you about "what Django 
> does and how it works."
>
> Good luck,
> Alan
>
> On Sunday, July 7, 2013 1:03:45 AM UTC-4, ron wrote:
>>
>> I need help with getting the big picture in so far as what Django can 
>> help me accomplish. I need to replace an antiquated online 
>> attendance-taking system. My first thought was to just build from scratch 
>> using Apache, Python, MySQL, HTML/JavaScript. My first stop was researching 
>> how to integrate Python and Apache, but that led me down the rabbit hole of 
>> programming. I kept running across using "Frameworks". From my reading so 
>> far, I can't determine if Django, as a framework, will yeild any advantage 
>> over just implementing the standalone bits and pieces.
>>
>> I'm putting out the word, here on the kist, for direction in this 
>> matter. My mail confusion is, does Django ome with its own database, and is 
>> this the same type database that I'm referring to to when I mentioned doing 
>> this task using the autonomous pieces?
>>
>> 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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Enhanced (Wufoo / Digg / Facebook - like) forms

2008-09-11 Thread Ron W

Trying to prevent some wheel-reinvention on my part and just wondering
if anyone out there's built some advanced form widgets to take care of
inline / ajax validation a la Digg registration page (http://digg.com/
register/), Wufoo's inline help / highlighting. Preferably using
jQuery and making life real easy with ModelForms.

I Googled around for it but couldn't find anything particularly good.

Suggestions?

PS: If you're working on things such as form validation user
experience make sure to check out "Designing the Obvious" by Robert
Hoekman Jr. - its a must-read for any developer.
http://www.amazon.com/Designing-Obvious-Common-Approach-Application/dp/032145345X/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Enhanced (Wufoo / Digg / Facebook - like) forms

2008-09-11 Thread Ron W

Thanks for the link, some good info in there. Not quite the "Django
Fancy Forms" framework I'm dreaming of, but definitely helps in a big
way... ;)

Ron

On Sep 11, 1:38 am, Dave <[EMAIL PROTECTED]> wrote:
> On Sep 11, 7:54 am, Ron W <[EMAIL PROTECTED]> wrote:
>
> > Trying to prevent some wheel-reinvention on my part and just wondering
> > if anyone out there's built some advanced form widgets to take care of
> > inline / ajax validation a la Digg registration page (http://digg.com/
> > register/), Wufoo's inline help / highlighting. Preferably using
> > jQuery and making life real easy with ModelForms.
>
> > I Googled around for it but couldn't find anything particularly good.
>
> > Suggestions?
>
> This is probably a bit out of date (pre ModelForms, I believe) but
> still quite useful.
>
> Jeremy Dunck, Jacob Kaplan-Moss and Simon Willison did a talk at OSCON
> 2007 called 'Django Master Class'. I believe Simon did the part of the
> talk about forms and AJAX which I think you might find useful.
>
> http://toys.jacobian.org/presentations/2007/oscon/tutorial/
>
> Cheers,
>
> David
>
> --
> David Reynolds
> [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: FF3 src error in django admin calendar

2009-09-29 Thread Ron W

I've been getting thrown 500 errors from someone using the admin from
what looks like Mac Firefox 3.5 with the Huffington Post's Firefox
extension (why on earth..), but its looking for /img/admin/
icon_calendar.gif/ which isn't from TinyMCE its the Django admin date
picker icon. Its really odd I can't get it to replicate locally.

Love to hear if somebody has a fix its driving me crazy

On Aug 26, 4:59 pm, J  wrote:
> I'm getting the same problem. --Using tinymce and FF3.5.
>
> If you find a good fix, I hope you share! Cheers!
>
> Alastair Campbell wrote:
> > Ok, I think I got to the bottom of this, it's a combination of TinyMCE
> > and Firefox 3.5
>
> > Unfortunately my Firebug expertise isn't that great, but with a few
> > alert boxes, it is the IF statement in DateTimeShortcuts.js that isn't
> > firing:
>
> > var scripts = document.getElementsByTagName('script');
> > for (var i=0; i >   if (scripts[i].src.match(/DateTimeShortcuts/)) {
> >     var idx = scripts[i].src.indexOf('js/admin/DateTimeShortcuts');
> >     DateTimeShortcuts.admin_media_prefix = scripts[i].src.substring(0, idx);
> >     break;
> >   }
> > }
>
> > Adding an alert(scripts[i].src) at the top of the FOR loop stops after
> > the 'core.js' file, so that IF statement never fires.
>
> > If I add a console.log at that point, the JavaScript runs, sometimes,
> > but sometimes stops after core.js.
>
> > TinyMCE is two files in the source code, but then it imports another
> > 10 (ish) for the pluggins.
>
> > It *seems* like Firefox gives up on the script loop when there are so
> > many to go through.
>
> > My solution has been to move the TinyMCE source files to after the
> > admin JS, which works for me, but is somewhat annoying.
>
> > I'll see if I can put a test case together, it might be worth adding a
> > bug report somewhere, although I'm not sure if it's for TinyMCE or
> > Firefox?!?
>
> > Thanks,
>
> > -Alastair
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: extreme newbie, cannot get install to work

2010-06-13 Thread Ron Barak


On Jun 12, 11:12 pm, jerryLee  wrote:
> I installed python, I am not sure if I use the IDLE,  or the command
> line, then I downloaded Django, and double clicked on install.py,
> another command windows opened and shut real fast, I don't know what
> to do now. When I go to the python command line, and put in cd django.
> 1.2.1 I get errors, I try import django, and other things, but
> nothing. Please, help me install Django, I am excited to use it.

Quote from Practical Django Projects, Second Edition, by James Bennett
ISBN-13 (electronic): 978-1-4302-1939-2:

Installing Django
Now that you’ve got Python installed and working, it’s time to install
Django and start exploring
its features. You can get a copy from the official Django web site;
visit www.djangoproject.
com/download/ and follow the instructions for downloading the latest
official release (which
should be Django 1.1 by the time this book goes to press).
Once you’ve downloaded the Django code onto your computer, you can
install it by typing
a single command. On Linux or Mac OS X, open a terminal, navigate to
the directory where
Django was downloaded, and locate a file named setup.py. Type the
following command, and
enter your password when prompted:
sudo python setup.py install
On Windows, you’ll need to open a command prompt with administrative
privileges.
Then you can navigate to the Django directory and type the following:
python setup.py install
The setup.py script is a standard installation procedure for Python
modules, and it takes care
of installing all the relevant Django code into the correct locations
for your operating system. If
you’re curious, Table 1-1 summarizes where the Django code will end up
on various systems.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Free web-hosting sites that support Django ?

2010-07-21 Thread Ron Barak
Hi,

I'm starting to learn Django, and was wandering if there were any free
web-hosting sites that would support modern Python (e.g. > 2.5) and
Django ?

Once the site I have in mind is developed and working in beta on the
free web-hosting site, I'll get myself a real domain and paid web-
hosting, but for the intial development time, I'd rather do it on free
hosting.

My searches didn't turn any sites that definitely support Django.
Closest I found was http://www.frihost.com/, but I'm still trying to
determine if Django is supported there.

So, to recap: d'you know of free web-hosting sites that support modern
Python and Django ?
Thanks,
Ron.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Incorrect string value when running GeoDjango tutorial

2012-09-23 Thread Ron Broberg
I solved this by changing the encoding in the line in the tutorial for 
world/load.py from this ...

#lm = LayerMapping(WorldBorder, world_shp, world_mapping,
#  transform=False, encoding='iso-8859-1')

To the following ...

lm = LayerMapping(WorldBorder, world_shp, world_mapping,
  transform=False, encoding='utf8')

As I am a python, django, and geodjango, I am not sure if that is a good 
workaround or not.
But it did load the name (Åland Islands) into the table correctly.

Ron

On Tuesday, August 14, 2012 5:21:12 AM UTC-6, Matias Burak wrote:
>
> Hi, I was trying to go through the GeoDjango tutorial and when I try to 
> import data with LayerMapping I'm getting the following error:
>
>   Warning: Incorrect string value: '\xC2\x85land...' for column 'name' 
> at row 1
>
> I'm using MySQL and my charset and collation are set to latin1 (I also 
> tried utf8).
>
> Any help is appreciated.
> Matias.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/pL0GXB6VAm8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why i can't get the debug informations (in case of error) when i run LiveServerTestCase tests?

2013-02-09 Thread Ron Elliott


On Tuesday, January 29, 2013 2:39:58 AM UTC-6, Alessandro Pelliciari wrote:
>
> Hi, I'm writing some tests with Selenium.
>
> When i run my selenium tests (LiveServerTestCase type) and i have some 
> error in my code (not in the test, i mean in the code executed, like the 
> homepage view i reach with selenium) i get the 500 public template (that 
> usually i get when i have DEBUG = False) even if i have:
>
> DEBUG = True 
> INTERNAL_IPS = ('127.0.0.1',)
>
> I'm stuck with that and i can't see why my test failed (because in the 
> public 500 ofc i don't show the exceptions).
>
> When i run the runserver it works perfectly (i get the tracebacks).
>
> I've checked the ip from request.META when i run it in a selenium test and 
> it's the localhost, not other network IP.
>
> *Why does it behave like that? Where can i look to resolve?*
>
this work:

class BaseTestCase(LiveServerTestCase):

def setUp(self):
setattr(settings, 'DEBUG', True) 

now make all of your test cases inherit from that test case

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Django escapes a string partially

2018-01-22 Thread Ron Moran
Hi there!

I have a problem with escaping an error.
I have this unicode in python(2.7) which isn't escaped well in a span 
element:

u"'NoneType' object has no attribute 'rfind'"
The template is defined as follows:


{{ v.get_human_status }}


where v.error_msg is the string above. It should be noted that all other 
attributes works just fine


I wrapped the template in 
{% autoescape on %}
...template content...

{% endautoescape %}


Then I tried using the escape/force_escape tag on the problematic string:

{{ v.error_msg | force_escape }}

Nothing works, the output is only escaped once:

data-content="'NoneType'" object has not attribute 'rfind'
Which causes the resulting popover to show only with the message 'NoneType'.

What am I doing wrong? Why isn't the string properly escaped?


I'm using Djagno 1.5.11, but this syntax was defined well before version 
1.5.11, so I don't think it's a version issue.

It's a minor issue but it's driving me mad.


Thanks,

Ron

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/94b82a29-4036-48eb-b339-e3068bac5e0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


OpenFace Integration with Django

2017-02-15 Thread RON MICHAEL
Hello! I'm 16 and I'm working on a project using Facial Recognition. I'm 
working on a face recognition API called OpenFace. Here's the link to 
Openface  

The way I did it was a imported the necessary files and folders required 
for OpenFace to work. After doing so and running OpenFace on my localhost, 
it worked. 
It should the image and the confidence value. 

The way I fed the image to OpenFace was that I had a list of urls of images 
that could be found on my local directory. I simply gave OpenFace the urls 
and had OpenFace recognise the faces.
This worked very well in my localhost. 

The trouble now was when uploading it to a Web Server. When I ran OpenFace 
in my web server the result was not the same as the one in my localhost. 
Instead of showing me the images and the confidence value, the return was 
empty. Nothing was being returned to me. But, when I tried it my localhost 
there was a return.

Any ideas? 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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7ca27ffb-da1d-44d5-89ec-4e3f7088861e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OpenFace Integration with Django

2017-02-16 Thread RON MICHAEL
Great! I've tried logging stuff but it doesn't seem to work when uploading 
it to a webserver. When running on my localhost server there was a log 
about a depreciation, then when it was doing training, then when it has 
finished training. But I can't seem to see it in the webserver terminal :/

On Thursday, February 16, 2017 at 12:24:40 AM UTC+8, Shawn Milochik wrote:
>
> It's probably some difference between environments. If you know your code 
> works (it runs locally) and you're running the same versions of all your 
> dependencies (Python, Django, Openface, etc.), then it doesn't *seem* too 
> likely to be a major bug. It *could* be a bug -- not checking for and 
> handling an exceptional condition. For example, what if your code processes 
> each file in a directory -- but that directory is empty? It'll "work" 
> perfectly, and return nothing.
>
> Add some logging along the way -- see what files it sees, what directories 
> it's looking it, etc. If you're hitting any external resources (APIs, 
> databases, etc.) make sure that your credentials work from your server and 
> that the services are available.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cb3b5747-08ad-4844-809c-c2ccba7c2e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Extract Date-From and Date-To in DateRangeField django

2017-02-16 Thread RON MICHAEL
Hi! In my database I have a DateRangeField. What I want to do is get the 
date-from and the date-to and store them in a separate variable like 
example:

date_from =DateRangeField(date_from)
date_to =DateRangeField(date_to)


of course that code won't work. My data is like this:

'date_range': DateRange(datetime.date(2017, 2, 17), datetime.date(2017, 2, 18), 
'[)')




How do I get those dates?

Btw, I've tried indexing this, and it doesn't work. I've tried iterating 
it, but it also doesn't work. 


-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/848d9e95-4701-4984-bfee-64526621084e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Extract Date-From and Date-To in DateRangeField django

2017-02-17 Thread RON MICHAEL
No NOT duration. I simply want to get the date_from and the date_to which 
is inside the DateRange. 

On Friday, February 17, 2017 at 8:13:39 PM UTC+8, Александр Христюхин wrote:
>
> Hi, do you mean to store some kind of duration? There's DurationField for 
> that. And you could store datetime.timedelta there. To get timedelta 
> between two datetime.datetime objects, you could subtract ine from another:
>
>
> from django.utils import timezone as tz
>
> now = tz.now()
> day_ago = tz.now() - tz.timedelta(days=1)
> duration = now - day_ago  # duration can be stored in DurationField
>
> On 17 Feb 2017, at 04:31, RON MICHAEL > 
> wrote:
>
> Hi! In my database I have a DateRangeField. What I want to do is get the 
> date-from and the date-to and store them in a separate variable like 
> example:
>
> date_from =DateRangeField(date_from)
> date_to =DateRangeField(date_to)
>
>
> of course that code won't work. My data is like this:
>
> 'date_range': DateRange(datetime.date(2017, 2, 17), datetime.date(2017, 2, 
> 18), '[)')
>
>
>
>
> How do I get those dates?
>
> Btw, I've tried indexing this, and it doesn't work. I've tried iterating 
> it, but it also doesn't work. 
>
>
>
> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/848d9e95-4701-4984-bfee-64526621084e%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/848d9e95-4701-4984-bfee-64526621084e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3ff094ad-8153-4e8e-9440-80a2b0057667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Extract Date-From and Date-To in DateRangeField django

2017-02-17 Thread RON MICHAEL
Yes that's it! Sorry, I lost the words there :D

On Friday, February 17, 2017 at 10:40:14 PM UTC+8, Melvyn Sopacua wrote:
>
> On Friday 17 February 2017 06:24:25 RON MICHAEL wrote:
>
> > No NOT duration. I simply want to get the date_from and the date_to
>
> > which is inside the DateRange.
>
>  
>
> You mean the lower and upper 
> <http://initd.org/psycopg/docs/extras.html#psycopg2.extras.DateRange>. 
>
>  
>
> -- 
>
> Melvyn Sopacua
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f344d0d9-561a-452b-9b83-525bbd4606f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-03 Thread Raunak Ron
I am Interested.

On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:

> I am interested in this position.
>
> I have an experience in Django Development with strong Python.
>
> On Tue, Apr 2, 2024, 10:49 PM Abhishek J  
> wrote:
>
>> Dear Developers,
>>
>> I need to build an android and IOS phone dialer similar to Truecaller.
>>
>> We are seeking experienced and dedicated candidates who are proficient in 
>> Django and possess a keen interest in contributing to this impactful 
>> initiative.
>>
>> We look forward to the opportunity to collaborate with talented 
>> individuals who are passionate about creating innovative solutions in the 
>> education sector.
>>
>> Thank you for considering this opportunity.
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/b0b71507-abfb-4c45-8701-92ef9f972affn%40googlegroups.com.


Re: How to create a django model for a resume/CV app

2016-11-20 Thread &#x27;ron' via Django users
Thanks! I know it's been covered in the official django poll tutorial.

But how do I let users to do that without django admin? I probably will 
have an URL like: example.com/cv/create and only logged in users will be 
able to create their cv.
I am not sure how to set up the view so that users can create new cv.

I know class based view. But in my cv app, each user can have one CV, each 
CV can have one or more precious job and each CV can have one or more 
education entries.
So I can't actually use class based view here because a CV needs more than 
one class, right?

My questions are:
1) Is this the right set up in terms of the relationship for a CV app?
2) How can I let users create a CV with multiple related objects without 
user django admin.

This is my models.py. Is this the right way to set up the relationship of a 
CV??

> class Resume(models.Model): 
> about = models.TextField(max_length=500) 
> applicant = models.ForeignKey(User) 
> 
> 
> class Education(models.Model): 
> resume = models.ForeignKey(Resume) 
> school = models.CharField(max_length=100) 
> course = models.CharField(max_length=100) 
> start_date = models.DateField(blank=True, null=True) 
> end_date = models.DateField(blank=True, null=True) 
> 
> class Job(models.Model): 
> resume = models.ForeignKey(Resume) 
> title = models.CharField(max_length=100) 
> company = models.CharField(max_length=100) 
> start_date = models.DateField(blank=True, null=True) 
> end_date = models.DateField(blank=True, null=True) 



On Sunday, 6 November 2016 22:05:16 UTC+1, ludovic coues wrote:
>
> If you are using the default django admin, you can use inline model 
> admins [1]. The django's tutorial covert this point with polls' 
> questions having many possible choice in part 7 [2] 
>
> [1] 
> https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#inlinemodeladmin-objects
>  
> [2] 
> https://docs.djangoproject.com/en/1.10/intro/tutorial07/#adding-related-objects
>  
>
> 2016-11-06 15:11 GMT+01:00 ronronald97 via Django users 
> >: 
> > Hi, 
> > 
> > I am rather new to django and not sure how to set up the relationship 
> for 
> > all the fields of a resume app. 
> > 
> > Let's say each user can have 1 or more resume. In each Resume, there is 
> a 
> > introduction/about, 1 or more education entries and 1 or more previous 
> job 
> > entries. 
> > Is this correct? 
> > 
> > class Resume(models.Model): 
> > about = models.TextField(max_length=500) 
> > applicant = models.ForeignKey(User) 
> > 
> > 
> > class Education(models.Model): 
> > school = models.CharField(max_length=100) 
> > course = models.CharField(max_length=100) 
> > Resume = models.ForeignKey(Resume) 
> > start_date = models.DateField(blank=True, null=True) 
> > end_date = models.DateField(blank=True, null=True) 
> > 
> > class Job(models.Model): 
> > title = models.CharField(max_length=100) 
> > company = models.CharField(max_length=100) 
> > Resume = models.ForeignKey(Resume) 
> > start_date = models.DateField(blank=True, null=True) 
> > end_date = models.DateField(blank=True, null=True) 
> > 
> > What should I do in the view or form to let user to add more education 
> or 
> > job fields? 
> > Or I could only set it up certain amount of entries for each model, for 
> > example 3 eduction entries and 5 previous jobs. 
> > Is there anyway I can do that dynamically so I can just start with 1 for 
> > each model and let the user add more if they need to? 
> > 
> > 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...@googlegroups.com . 
> > To post to this group, send email to django...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/c23fc997-b723-4987-9be7-eb352f88814b%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
>
> Cordialement, Coues Ludovic 
> +336 148 743 42 
>
>
 

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12e86877-ea02-4a8c-b05f-874ef43746b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.