Profile

Cover photo
Απόστολος Βλαχόπουλος
Works at Rhombus Software Systems
Attends Aristotle University of Thessaloniki
Lives in Thessaloniki Greece, Θεσσαλονίκη Ελλάδα
80,504 views
AboutPostsReviews

Stream

 
Hello to the great community. I did an upgrade from 13.10 to 14.04 final beta, without fresh install. As expected it deactivated some of my ppa's but now i can't seem to be able to re-activate them. One of them is the ubuntu-sdk ppa which if I am not mistaken there is one for Trusty. It let's me choose it i enter password but it won't activate. How can I solve this?
1
Απόστολος Βλαχόπουλος's profile photoMichał Prędotka's profile photoVincent Disco's profile photo
6 comments
 
Oh wait, this was for the SDK? Disregard my comment then (though you could always bet on multiple horses and try at askubuntu.com as well).
Add a comment...
 
Thought I might get some answers here. Basically I want to use SessionAuthentication with tastypie. But django uses csrf_token. Tastypie views won't provide me with one. How can I use a valid token to post data on tastypie views?
1
Alexander Lapshin's profile photoΑπόστολος Βλαχόπουλος's profile photo
2 comments
 
Yes i have seen this, but it uses basic authentication and authorization. I am using basic right now and everything works fine, but i need to use Django's (DjangoAuthorization, SessionAuthentication), so permissions will be set. But they need the csrftoken, which i don't know how to pass to tastypie views
Add a comment...
1
Tiziano Lattisi's profile photoΑπόστολος Βλαχόπουλος's profile photoStepan Prokipchyn's profile photo
8 comments
 
With proxy models you could modify or extend your existing model without changing one. For example you can add sorting, filtering, add additional column or row, or even modify the data. Without changing your model class, but rather by wrapping it.

Check 
http://qt-project.org/doc/qt-5.0/qtcore/qabstractproxymodel.html for details.
There are some sample proxy model implemented by Qt, but you will probably need to implement new
Add a comment...
 
I want to override the save method of a model. 
I have a customer model and a project model. Project model has a propery model which is a ForeignKey to customer

class Project(models.Model):
      ........more properties........
      customer = models.ForeignKey(Customer)

I want to override the save method of the Project model so when a new project is created it should also change the value of a property of  customer. 

I tried this:
 def save(self, *args, **kwargs):
        self.customer.current_amount_owed += self.cost
        self.customer.save()
        super(Project, self).save(*args, **kwargs)

for testing purposes but didn't work at all. It is not even called(i tried to print something from inside save and the message did not appear on the console)

Any suggestions or good reading?
1
Thomas Woolford's profile photoΑπόστολος Βλαχόπουλος's profile photoRaymond McGinlay's profile photo
9 comments
 
you'd better of using the debug framework rather than print statements, then you could send your debug message to file, email  or whatever. Here's slightly old tutorial but looks ok. http://www.djangocurrent.com/2011/06/django-logging-quickstart-in-django-13.html 
Add a comment...
 
Hello to this great community. I have a question. How can i make eric's editor autocomplete django code. I have installed the plugin and loaded the api but the api is old. It has the 0.96.api and the 1.0.2.api and they are missing things like django.utils.timezone module. How can i make it work with 1.5.1 i have installed in my system? Or from the documents is it possible?
1
Tim Kleinschmidt (Azd325)'s profile photoSergey Russkih's profile photoΑπόστολος Βλαχόπουλος's profile photo
6 comments
 
Emacs OS?what is that?
Add a comment...
 
Any help in this? There are some test picture links for testing in the comments
1
Add a comment...
 
is it possible to add the already there admin functionality (like filtering, ordering,  the javascript calendar in datetime fields etc) in the front pages of a django project?
1
Απόστολος Βλαχόπουλος's profile photoRei Ayanami's profile photoThomas Weissel's profile photo
6 comments
 
http://flexible.xapient.net/?p=343

you can use the datetime widget in your frontend.. just edit the form to use the widget and add the files needed to your template..

also you could browse the source code of django - admin and have a look how they did it, then copy it to your own project
Add a comment...
 
suppose you have something like this. 
a url like   /teacher/add/ and url /student/add. And teacher and student are models in the same app. Is there a way to have one url.py for both teacher and student?How would it work?
e.g.
main urls.py
urlpatterns = patterns('',   
    url(r'^desknet/teacher/', include('app.urls')),
    url(r'^desknet/student/', include('app.urls')),
)

office/urls.py
urlpatterns = patterns(' ', 
    url(r'^add/$ ', 'add_teacher_view')
    url(r'^add/$ ', 'add_student_view')

Obviously this one wouldn't work right? Is there a django way to make it work?Or is the only way to change the urls?
3
Mi-e Foame's profile photoRobert Węglarek's profile photoMike Drawback's profile photoΑπόστολος Βλαχόπουλος's profile photo
9 comments
 
+Robert Węglarek +Mike Drawback Thank you too.. Will look into it...
Add a comment...
 
The qt Creator installed using ubuntu-sdk I installed doesn't contain the help docs of qt....Can i install them after installing ubuntu-sdk somehow?
1
Add a comment...
 
I get this error when trying to launch either ubuntu or plain qt creator. It worked since the last updates. Any help? Ubuntu 12.10.

ubuntu-qtcreator 
qtcreator: symbol lookup error: /usr/lib/i386-linux-gnu/qt5/plugins/platforms/libqxcb.so: undefined symbol: _ZN15QPlatformWindow17formatWindowTitleERK7QStringS2
1
Zane Swafford's profile photoJarek W's profile photoΑπόστολος Βλαχόπουλος's profile photo
9 comments
 
+J whatever....I won't even continue the conversation....
Add a comment...
 
Not trying to "fish" for advertisments...but could anyoneone suggest some webhosting that is veeeery django friendly?And i mean either installing django on the host or maybe like uploading your files after you have developed locally?
1
Απόστολος Βλαχόπουλος's profile photoFerdy Rodríguez's profile photoMiguel Mendez's profile photoScot Hacker's profile photo
9 comments
 
Tons of Django-friendly web hosts listed at http://djangofriendly.com/hosts/
Add a comment...
 
Can someone explain what exactly bootstrap is and why would someone use it in his django app/project?
1
1
Jean-Christophe “Jice” Lavocat's profile photoΑπόστολος Βλαχόπουλος's profile photoRémy Sanchez's profile photoCarlos Catucci's profile photo
9 comments
 
Kind of. Just think HTML/CSS as the native drawing library for your system, and Bootstrap as something higher level like Qt or GTK
Add a comment...
Story
Bragging rights
Είμαι υπερήφανος που είμαι εγώ..και μετριόφρων...
Education
  • Aristotle University of Thessaloniki
    Μ.Sc Θεωρητική Πληροφορική Θεωρία Συστημάτων και Ελέγχου, 2011 - present
  • Technological Educational Institute Of Thessaloniki
    Accounting, 1999 - 2004
  • University of Macedonia Thessaloniki
    Applied Informatics, 2005 - 2011
  • Αρσάκειο Λύκειο Θεσσαλονίκης
    4η Δέσμη
  • Αρσάκειο Γυμνάσιο Θεσσαλονίκης
Basic Information
Gender
Male
Work
Occupation
Python/Django webdeveloper
Skills
Python, django, javascript, Ajax, MySQL, Linux, Apache
Employment
  • Rhombus Software Systems
    Django Developer, 2013 - present
    Developing web apps using Django python and javascript.
  • Φροντιστήριο ΕΛΙΞ
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2011 - present
  • Συμμετρο Φροντιστήριο
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2005 - 2006
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Thessaloniki Greece, Θεσσαλονίκη Ελλάδα
Πολύ καλό φαγητό καλη μπύρα ωραια ατμόσφαιρα...
Public - 2 years ago
reviewed 2 years ago
1 review
Map
Map
Map